wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_get_footnotes_from_revision › WordPress Function

Since6.3.0
Deprecatedn/a
wp_get_footnotes_from_revision ( $revision_field, $field, $revision )
Parameters: (3)
  • (string) $revision_field The field value, but $revision->$field (footnotes) does not exist.
    Required: Yes
  • (string) $field The field name, in this case "footnotes".
    Required: Yes
  • (object) $revision The revision object to compare against.
    Required: Yes
Returns:
  • (string) The field value.
Defined at:
Codex:

Gets the footnotes field from the revision for the revisions screen.



Source

function wp_get_footnotes_from_revision( $revision_field, $field, $revision ) {
	return get_metadata( 'post', $revision->ID, $field, true );
}