Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Created June 2, 2016 17:40
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Pebblo/f5d9bfd66439d99d9cbe37558ac4b947 to your computer and use it in GitHub Desktop.
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.
<?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