bp_has_custom_activation_page()

Do we have a working custom activation page?

Description

Return

(boolean) True if page and template exist, false if not.

Source

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

2084
2085
2086
2087
2088
2089
2090
2091
function bp_has_custom_activation_page() {
    static $has_page = false;
 
    if ( empty( $has_page ) )
        $has_page = bp_get_activate_slug() && bp_locate_template( array( 'registration/activate.php', 'members/activate.php', 'activate.php' ), false );
 
    return (bool) $has_page;
}

Changelog

Changelog
Version Description
BuddyPress 1.5.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.