bbp_do_activation_redirect()
Redirect user to “What’s New” page on activation
Description Description
Return Return
(If) no transient, or in network admin, or is bulk activation
Source Source
File: includes/core/update.php
function bbp_do_activation_redirect() { // Bail if no redirect trigger if ( ! get_user_option( '_bbp_activation_redirect' ) ) { return; } // Delete the redirect trigger delete_user_option( get_current_user_id(), '_bbp_activation_redirect' ); // Bail if activating from network, or bulk if ( is_network_admin() || isset( $_GET['activate-multi'] ) ) { return; } // Bail if the current user cannot see the about page if ( ! current_user_can( 'bbp_about_page' ) ) { return; } // Redirect to bbPress about page bbp_redirect( add_query_arg( array( 'page' => 'bbp-about' ), admin_url( 'index.php' ) ) ); }
Changelog Changelog
Version | Description |
---|---|
2.2.0 | Introduced. |