bp_do_activation_redirect()
Redirect user to BuddyPress’s What’s New page on activation.
Description Description
Source Source
File: bp-core/admin/bp-core-admin-functions.php
function bp_do_activation_redirect() { // Bail if no activation redirect. if ( ! get_transient( '_bp_activation_redirect' ) ) { return; } // Delete the redirect transient. delete_transient( '_bp_activation_redirect' ); // Bail if activating from network, or bulk. if ( isset( $_GET['activate-multi'] ) ) { return; } $query_args = array(); if ( get_transient( '_bp_is_new_install' ) ) { $query_args['is_new_install'] = '1'; delete_transient( '_bp_is_new_install' ); } // Redirect to dashboard and trigger the Hello screen. wp_safe_redirect( add_query_arg( $query_args, bp_get_admin_url( '?hello=buddypress' ) ) ); }
Changelog Changelog
Version | Description |
---|---|
1.7.0 | Introduced. |