示例#1
0
/**
 * Fire activation hooks and events.
 *
 * Runs on BuddyPress activation.
 *
 * @since 1.6.0
 *
 * @uses do_action() Calls 'bp_activation' hook.
 */
function bp_activation()
{
    // Force refresh theme roots.
    delete_site_transient('theme_roots');
    // Add options
    bp_add_options();
    /**
     * Fires during the activation of BuddyPress.
     *
     * Use as of (1.6.0)
     *
     * @since 1.6.0
     */
    do_action('bp_activation');
    // @deprecated as of (1.6)
    do_action('bp_loader_activate');
}
示例#2
0
/**
 * Fire activation hooks and events.
 *
 * Runs on BuddyPress activation.
 *
 * @since BuddyPress (1.6.0)
 *
 * @uses do_action() Calls 'bp_activation' hook.
 */
function bp_activation()
{
    // Force refresh theme roots.
    delete_site_transient('theme_roots');
    // Add options
    bp_add_options();
    // Use as of (1.6)
    do_action('bp_activation');
    // @deprecated as of (1.6)
    do_action('bp_loader_activate');
}