bp_account_was_activated()

Check whether an activation has just been completed.


Description Description


Return Return

(bool) True if the activation_complete global flag has been set, otherwise false.


Top ↑

Source Source

File: bp-core/bp-core-template.php

function bp_account_was_activated() {
	$bp = buddypress();

	$activation_complete = ! empty( $bp->activation_complete ) || ( bp_is_current_component( 'activate' ) && ! empty( $_GET['activated'] ) );

	return $activation_complete;
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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