post_tags_meta_box [ WordPress Function ]
post_tags_meta_box ( $post, $box )
| Parameters: |
|
| Defined at: |
|
Soorgelijke functies: post_slug_meta_box, post_categories_meta_box, post_format_meta_box, post_custom_meta_box, post_author_meta_box
Display post tags form fields.
Source
<?php
function post_tags_meta_box($post, $box) {
$defaults = array('taxonomy' => 'post_tag');
if ( !isset($box['args']) || !is_array($box['args']) )
$args = array();
else
$args = $box['args'];
extract( wp_parse_args($args, $defaults), EXTR_SKIP );
$tax_name = esc_attr($taxonomy);
$taxonomy = get_taxonomy($taxonomy);
$disabled = !current_user_can($taxonomy->cap->assign_terms) ? 'disabled="disabled"' : '';
$comma = _x( ',', 'tag delimiter' );
?>
<div class="tagsdiv" id="<?php echo $tax_name; ?>">
<div class="jaxtag">
<div class="nojs-tags hide-if-js">
<p><?php echo $taxonomy->labels->add_or_remove_items; ?></p>
<textarea name="<?php echo "tax_input[$tax_name]"; ?>" rows="3" cols="20" class="the-tags" id="tax-input-<?php echo $tax_name; ?>" <?php echo $disabled; ?>><?php echo str_replace( ',', $comma . ' ', get_terms_to_edit( $post->ID, $tax_name ) ); // textarea_escaped by esc_attr() ?></textarea></div>
<?php if ( current_user_can($taxonomy->cap->assign_terms) ) : ?>
<div class="ajaxtag hide-if-no-js">
<label class="screen-reader-text" for="new-tag-<?php echo $tax_name; ?>"><?php echo $box['title']; ?></label>
<div class="taghint"><?php echo $taxonomy->labels->add_new_item; ?></div>
<p><input type="text" id="new-tag-<?php echo $tax_name; ?>" name="newtag[<?php echo $tax_name; ?>]" class="newtag form-input-tip" size="16" autocomplete="off" value="" />
<input type="button" class="button tagadd" value="<?php esc_attr_e('Add'); ?>" tabindex="3" /></p>
</div>
<p class="howto"><?php echo esc_attr( $taxonomy->labels->separate_items_with_commas ); ?></p>
<?php endif; ?>
</div>
<div class="tagchecklist"></div>
</div>
<?php if ( current_user_can($taxonomy->cap->assign_terms) ) : ?>
<p class="hide-if-no-js"><a href="#titlediv" class="tagcloud-link" id="link-<?php echo $tax_name; ?>"><?php echo $taxonomy->labels->choose_from_most_used; ?></a></p>
<?php endif; ?>
<?php
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- post_tags_meta_box
Function and Method Cross Reference. post_tags_meta_box(). Defined at: /wp- admin/includes/meta-boxes.php -> line 262. No references found.
phpxref.ftwr.co.uk - Add Tags and Categories to Your WordPress Page
Sep 29, 2010 ... Argument 3 must be set to post_tags_meta_box because this is the native WordPress function used to render the tag metabox. Similarly, we ...
shibashake.com - WordPress › Support » How to change default meta box locations?
I am trying to change the Post Tags meta box default location - from "side" to " normal" (actually from the right small column to the bigger left one). Here is how I try ...
wordpress.org - post_tags_meta_box (WordPress Function) - WPSeek.com
WordPress lookup for post_tags_meta_box, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com