wp_get_footnotes_from_revision

函数
wp_get_footnotes_from_revision ( $revision_field, $field, $revision )
参数
  • (string) $revision_field The field value, but $revision->$field (footnotes) does not exist.
    Required:
  • (string) $field The field name, in this case "footnotes".
    Required:
  • (object) $revision The revision object to compare against.
    Required:
返回值
  • (string) The field value.
定义位置
相关方法
wp_add_footnotes_to_revisionwp_get_post_revisionwp_get_post_revisionswp_get_post_revisions_urlwp_delete_post_revision
引入
6.3.0
弃用
-

从修订屏幕的修订中获取脚注字段。

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

常见问题

FAQs
查看更多 >