Skip to:
Content

BuddyPress.org

Changeset 10413


Ignore:
Timestamp:
12/18/2015 10:02:56 PM (9 years ago)
Author:
djpaul
Message:

Core: New action hooks for post type registration

This will initially be used for #6592

Location:
trunk/src/bp-core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-actions.php

    r10356 r10413  
    6666 */
    6767add_action( 'bp_init', 'bp_core_set_uri_globals',    2  );
     68add_action( 'bp_init', 'bp_register_post_types',     3  );
    6869add_action( 'bp_init', 'bp_register_taxonomies',     3  );
    6970add_action( 'bp_init', 'bp_setup_globals',           4  );
  • trunk/src/bp-core/bp-core-dependency.php

    r10356 r10413  
    7272     */
    7373    do_action( 'bp_register_taxonomies' );
     74}
     75
     76/**
     77 * Fire the 'bp_register_post_types' action, where plugins should register post types.
     78 *
     79 * @since BuddyPress (2.5.0)
     80 */
     81function bp_register_post_types() {
     82
     83    /**
     84     * Fires inside the 'bp_register_post_types' function, where plugins should register post types.
     85     *
     86     * @since BuddyPress (2.5.0)
     87     */
     88    do_action( 'bp_register_post_types' );
    7489}
    7590
Note: See TracChangeset for help on using the changeset viewer.