WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/23/2013 05:11:09 PM (5 years ago)
Author:
nacin
Message:

Introduce a meta_box_cb argument for register_taxonomy().

The specified callback function is used as the meta box callback for the taxonomy.

props garyc40, helen.
fixes #14206.

File:
1 edited

Legend:

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

    r25554 r25572  
    11401140 * - supports - An alias for calling add_post_type_support() directly. Defaults to title and editor.
    11411141 *     * See {@link add_post_type_support()} for documentation.
    1142  * - register_meta_box_cb - Provide a callback function that will be called when setting up the
    1143  *     meta boxes for the edit form. Do remove_meta_box() and add_meta_box() calls in the callback.
     1142 * - register_meta_box_cb - Provide a callback function that sets up the meta boxes
     1143 *     for the edit form. Do remove_meta_box() and add_meta_box() calls in the callback.
    11441144 * - taxonomies - An array of taxonomy identifiers that will be registered for the post type.
    11451145 *     * Default is no taxonomies.
Note: See TracChangeset for help on using the changeset viewer.