• Hello,

    I used the filter wpmem_login_form to attempt to edit the Heading of the log-in form on my site. I want to change it from “existing users log in” to “Course Log In”

    I’ve tried many different string replaces and this was the only one that didn’t give me an error, but also did not make any changes.

    I have tried many different modifications to the codes and filters with no success. Please advise.

    https://www.jorgewellness.com/

    add_filter( 'wpmem_login_form', 'my_login_form_filter', 10, 2 );
    ?
    function my_login_form_filter( $form, $action )
    {
    ????/**
    ?????* The login form is brought in with $form
    ?????* You can append to it or filter it
    ?????*
    ?????* $action specifies the form being constructed. It
    ?????* can be: login|pwdreset|pwdchange
    ?????*/
    ???
        global $wpmem_a;
    ?????
    ????$form = str_replace( ’Existing Users Log In’, ‘Course Log in’, $form );
    ?????
    ????return $form;
    }

    https://www.ads-software.com/plugins/wp-members/

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

    (@cbutlerjr)

    If that’s exactly what you used, the reason it doesn’t work is the encoding of the quotes in your str_replace function. W

    hat you have is this: vs. '

    Retype them using single quotes and it will work fine.

    This can happen sometimes when copy/pasting code depending on the platform used and what it is being copy/pasted from/to.

Viewing 1 replies (of 1 total)
  • The topic ‘Filter for changing the Log-In heading is not working’ is closed to new replies.