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
2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 | 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.