post_excerpt_meta_box

Definition:
function post_excerpt_meta_box($post) {}

Display post excerpt form fields.

Parameters

  • object $post

Source code

function post_excerpt_meta_box($post) {

?>

<label class="screen-reader-text" for="excerpt"><?php _e('Excerpt') ?></label><textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt"><?php echo $post->post_excerpt; // textarea_escaped ?></textarea>

<p><?php _e('Excerpts are optional hand-crafted summaries of your content that can be used in your theme. <a href="http://codex.wordpress.org/Excerpt" target="_blank">Learn more about manual excerpts.</a>'); ?></p>

<?php

}

2569

post_custom_meta_box

Definition:
function post_custom_meta_box($post) {}

Display custom fields form fields.

Parameters

  • object $post

Source code

function post_custom_meta_box($post) {

?>

<div id="postcustomstuff">

<div id="ajax-response"></div>

<?php

$metadata = has_meta($post->ID);

list_meta($metadata);

meta_form(); ?>

</div>

<p><?php _e('Custom fields can be used to add extra metadata to a post that you can <a href="http://codex.wordpress.org/Using_Custom_Fields" target="_blank">use in your theme</a>.'); ?></p>

<?php

}

2567

post_custom

Definition:
function post_custom( $key = '' ) {}

Retrieve post custom meta data field.

Parameters

  • string $key: Meta data key name.

Return values

returns:Array of values or single value, if only one element exists. False will be returned if key does not exist.

Source code

function post_custom( $key = '' ) {

	$custom = get_post_custom();



	if ( !isset( $custom[$key] ) )

		return false;

	elseif ( 1 == count($custom[$key]) )

		return $custom[$key][0];

	else

		return $custom[$key];

}

2565

post_comment_status_meta_box

Definition:
function post_comment_status_meta_box($post) {}

Display comments status form fields.

Parameters

  • object $post

Defined actions

  • post_comment_status_meta_box-options
    do_action('post_comment_status_meta_box-options', $post);

Source code

function post_comment_status_meta_box($post) {

?>

<input name="advanced_view" type="hidden" value="1" />

<p class="meta-options">

	<label for="comment_status" class="selectit"><input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($post->comment_status, 'open'); ?> /> <?php _e( 'Allow comments.' ) ?></label><br />

	<label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked($post->ping_status, 'open'); ?> /> <?php printf( __( 'Allow <a href="%s" target="_blank">trackbacks and pingbacks</a> on this page.' ), __( 'http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments' ) ); ?></label>

	<?php do_action('post_comment_status_meta_box-options', $post); ?>

</p>

<?php

}

2563

post_comment_meta_box_thead

Definition:
function post_comment_meta_box_thead($result) {}

Display comments for post table header

Parameters

  • array $result: table header rows

Source code

function post_comment_meta_box_thead($result) {

	unset($result['cb'], $result['response']);

	return $result;

}

2561