wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_get_footnotes_from_revision › WordPress Function

Da6.3.0
Deprecaton/a
wp_get_footnotes_from_revision ( $revision_field, $field, $revision )
Parametri: (3)
  • (string) $revision_field The field value, but $revision->$field (footnotes) does not exist.
    Richiesto:
  • (string) $field The field name, in this case "footnotes".
    Richiesto:
  • (object) $revision The revision object to compare against.
    Richiesto:
Ritorna:
  • (string) The field value.
Definito a:
Codex:

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



Sorgenti

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