bp_add_activation_redirect()
Redirect user to BP’s What’s New page on first page load after activation.
Description Description
Source Source
File: bp-core/bp-core-update.php
function bp_add_activation_redirect() { // Bail if activating from network, or bulk. if ( isset( $_GET['activate-multi'] ) ) { return; } // Record that this is a new installation, so we show the right // welcome message. if ( bp_is_install() ) { set_transient( '_bp_is_new_install', true, 30 ); } // Add the transient to redirect. set_transient( '_bp_activation_redirect', true, 30 ); }
Changelog Changelog
Version | Description |
---|---|
1.7.0 | Introduced. |