wp_get_footnotes_from_revision()WP 6.3.0

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

No Hooks.

Return

String. The field value.

Usage

wp_get_footnotes_from_revision( $revision_field, $field, $revision );
$revision_field(string) (required)
The field value, but $revision->$field (footnotes) does not exist.
$field(string) (required)
The field name, in this case "footnotes".
$revision(object) (required)
The revision object to compare against.

Changelog

Since 6.3.0 Introduced.

wp_get_footnotes_from_revision() code WP 6.7.1

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