Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    The simplest way to approach that would be to use the wpmem_login_form filter to return the WP login form using the wp_login_form function with echo turned off:

    add_filter( 'wpmem_login_form', function(){
    	return wp_login_form( array('echo'=>false) );
    });

    Sorry, i’m a bit of a noob in the code department. but i’m looking for the same thing. where exactly do i change or add this function and in what file?

    this is the website: https://cms.aglaja.be/?page_id=1983

    ok, so i just used these shortcodes, it removed to login, made a simple button in my theme design and now it works like a charm! no hooks needed!

    cheers!

    [wp-members status="out"]
    2
    this content displays when a user is not logged in.
    3
    [/wp-members]

    and

    ′[wp-members status=”in”]
    2
    this content can only be seen by logged in users.
    3
    [/wp-members]`

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using WordPress default login widget’ is closed to new replies.