bbp_add_activation_redirect()

Redirect user to the “What’s New” page on activation


Description Description


Return Return

(If) network admin or bulk activation


Top ↑

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 );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.