Support » Plugin: WP Frontend Profile » Enable only Profile edit Page

  • Resolved netzgestaltung

    (@netzgestaltung)


    Hi there,

    just in case someone searches for similar purposes

    i like to use only the profile-edit part of this plugin and researched how i can restore the usual WP login/out/register process

    i do this because i allready did customized the normal login form and want to have the small form without site-layout – to load it in al lightbox for example.

    this is what i came up and what worked for me:

    
    function myTheme_setup_theme() {
      // ... other stuff
      myTheme_wpfep_login_deconstruct();
    }
    function myTheme_wpfep_login_deconstruct(){
      if ( class_exists('WPFEP_Login') ) {
        $login_obj = WPFEP_Login::init();
        remove_filter('init', array($login_obj, 'process_login'));
        remove_filter('init', array($login_obj, 'process_logout'));
        remove_filter('init', array($login_obj, 'process_reset_password'));
        remove_filter('init', array($login_obj, 'wp_login_page_redirect'));
        remove_filter('init', array($login_obj, 'activation_user_registration'));
        remove_filter('login_url', array($login_obj, 'filter_login_url'));
        remove_filter('logout_url', array($login_obj, 'filter_logout_url'));
        remove_filter('lostpassword_url', array($login_obj, 'filter_lostpassword_url'));
        remove_filter('authenticate', array($login_obj, 'successfully_authenticate'));
      }
    }
    add_action('after_setup_theme', 'myTheme_setup_theme');
    

    i’ll add more here if i find mor to do in this case.

    maybe as a feature request an option at settings/pages with disabling a page would be usefull.

    this is not a criticism of the plugin, i think its on a good way!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Enable only Profile edit Page’ is closed to new replies.