-
-
Save anonymous/67635d8cc80ebbcd7fbac1e86bb0d521 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('wp', 'custom_maybe_activate_user', 9); | |
function custom_maybe_activate_user() { | |
$template_path = STYLESHEETPATH . '/public_html/wp-content/themes/virtue_premium_child/wp-content/plugins/gravityformsuserregistration/includes/gfur-activate-template/activate.php'; | |
$is_activate_page = isset( $_GET['page'] ) && $_GET['page'] == 'gf_activation'; | |
if( ! file_exists( $template_path ) || ! $is_activate_page ) | |
return; | |
require_once( $template_path ); | |
exit(); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment