/functions.php Secret
Created
June 2, 2016 17:40
Star
You must be signed in to star a gist
AN example of how to load a custom version of the eea-wp-users-login-form.template.php template file from your theme/child theme.
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
<?php // Do not include the opening PHP tag if you already have one. | |
//switch ee-user-integration log in form template out with a new one in the child theme. | |
function tw_ee_custom_login_forgotpassword_template( $template_path ) { | |
if (basename( $template_path ) == 'eea-wp-users-login-form.template.php'){ | |
$template_path = get_stylesheet_directory() . '/eea-wp-users-login-form.template.php'; | |
} | |
return $template_path; | |
} | |
add_filter( 'FHEE__EEH_Template__display_template__template_path', 'tw_ee_custom_login_forgotpassword_template' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment