post_custom_meta_box [ WordPress Function ]
post_custom_meta_box ( $post )
| Parameters: |
|
| Defined at: |
|
Benzer Fonksiyonlar: post_author_meta_box, post_comment_meta_box, post_format_meta_box, post_submit_meta_box, post_slug_meta_box
Display custom fields form fields.
Source
<?php
function post_custom_meta_box($post) {
?>
<div id="postcustomstuff">
<div id="ajax-response"></div>
<?php
$metadata = has_meta($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 ] );
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- post_custom_meta_box
Function and Method Cross Reference. post_custom_meta_box(). Defined at: / wp-admin/includes/meta-boxes.php -> line 409. No references found.
phpxref.ftwr.co.uk - Remove Post Custom Meta Box - WordPress
Mar 7, 2012 ... I created a custom post type. When I click "Add new" for this post type, I see among other meta boxes a "Main Slider Item SEO" meta box.
wordpress.stackexchange.com - Add Meta Box not showing on New Post - Custom meta box not ...
Nov 7, 2011 ... This issue has plagued me over a couple projects. I used the default Wordpress class-based template provided in the Codex to start, and built ...
wordpress.stackexchange.com - Browser Freezes when I try to make a New Post
Nov 16, 2009 ... If you have a similar type of problem then: Lookout for this line “add_meta_box(' postcustom', __('Custom Fields'), 'post_custom_meta_box', ...
www.paggu.com