post_custom_meta_box

函数


post_custom_meta_box ( $post )
参数
  • (WP_Post)
    $post
    Current post object.
    Required:
定义位置
  • wp-admin/includes/meta-boxes.php
    , line 764
引入
2.6.0
弃用

Displays custom fields form fields.

function post_custom_meta_box( $post ) {
	?>
ID ); foreach ( $metadata as $key => $value ) { if ( is_protected_meta( $metadata[ $key ]['meta_key'], 'post' ) || ! current_user_can( 'edit_post_meta', $post->ID, $metadata[ $key ]['meta_key'] ) ) { unset( $metadata[ $key ] ); } } list_meta( $metadata ); meta_form( $post ); ?>