wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_get_footnotes_from_revision › WordPress Function

Desde6.3.0
Obsoleton/a
wp_get_footnotes_from_revision ( $revision_field, $field, $revision )
Parâmetros: (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
Retorna:
  • (string) The field value.
Definido em:
Codex:

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



Fonte

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