bbp_add_activation_redirect()
Redirect user to the “What’s New” page on activation
Description Description
Return Return
(If) network admin or bulk activation
Source Source
File: includes/core/update.php
function bbp_add_activation_redirect() {
// Bail if activating from network, or bulk
if ( is_network_admin() || isset( $_GET['activate-multi'] ) ) {
return;
}
// Add the redirect trigger
update_user_option( get_current_user_id(), '_bbp_activation_redirect', true );
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.2.0 | Introduced. |