bp_get_current_activation_key()
Get the activation key from the current request URL.
Description
Return
(string)
Source
File: bp-members/bp-members-template.php
function bp_get_current_activation_key() {
$key = '';
if ( bp_is_current_component( 'activate' ) ) {
if ( isset( $_GET['key'] ) ) {
$key = wp_unslash( $_GET['key'] );
} else {
$key = bp_current_action();
}
}
/**
* Filters the activation key from the current request URL.
*
* @since BuddyPress 3.0.0
*
* @param string $key Activation key.
*/
return apply_filters( 'bp_get_current_activation_key', $key );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 3.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.