Make WordPress Core


Ignore:
Timestamp:
10/27/2013 04:28:19 PM (11 years ago)
Author:
helen
Message:

Allow passing false for the meta_box_cb arg in register_taxonomy() to turn off the meta box display entirely. fixes #21543.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy.php

    r25933 r25948  
    290290 * - show_tagcloud - Whether to list the taxonomy in the Tag Cloud Widget.
    291291 *     * If not set, the default is inherited from show_ui.
    292  * - meta_box_cb - Provide a callback function for the meta box display. Defaults to
    293  *     post_categories_meta_box for hierarchical taxonomies and post_tags_meta_box for non-hierarchical.
     292 * - meta_box_cb - Provide a callback function for the meta box display.
     293 *     * If not set, defaults to post_categories_meta_box for hierarchical taxonomies
     294 *     and post_tags_meta_box for non-hierarchical.
     295 *     * If false, no meta box is shown.
    294296 * - capabilities - Array of capabilities for this taxonomy.
    295297 *     * You can see accepted values in this function.
Note: See TracChangeset for help on using the changeset viewer.