bp_email_redirect_to_customizer()

Implements a JS redirect to the Customizer, previewing a randomly selected email.

Description

Source

File: bp-core/bp-core-customizer-email.php

537
538
539
540
541
542
543
544
545
function bp_email_redirect_to_customizer() {
 
    printf(
        '<script>window.location = "%s";</script>',
        esc_url_raw( bp_email_get_redirect_to_customizer_url() )
    );
 
    exit;
}

Changelog

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