wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_get_footnotes_from_revision › WordPress Function

Od6.3.0
Przestarzałyn/a
wp_get_footnotes_from_revision ( $revision_field, $field, $revision )
Parametry: (3)
  • (string) $revision_field The field value, but $revision->$field (footnotes) does not exist.
    Wymagane: Tak
  • (string) $field The field name, in this case "footnotes".
    Wymagane: Tak
  • (object) $revision The revision object to compare against.
    Wymagane: Tak
Powrót:
  • (string) The field value.
Zdefiniowane na:
Codex:

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



Źródło

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