WordPress.org

Support

Support » Plugins and Hacks » Theme My Login » [Resolved] From where are the Password fields pulled?

[Resolved] From where are the Password fields pulled?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Jeff Farthing

    @jfarthing84

    The password fields are injected to the template using the login_form action hook. The easiest way to do this would be to hardcode them yourself into the template.

    <?php
    do_action( 'register_form' ); // WordPress hook
    do_action_ref_array( 'tml_register_form', array( &$template ) ); //TML hook
    ?>

    But I´m leaving the ref array part below that hook?

    Plugin Author Jeff Farthing

    @jfarthing84

    You’ll want to remove the callback from the hook so that they don’t display twice:

    remove_action( 'tml_register_form', array( &$GLOBALS['theme_my_login_custom_passwords'], 'password_fields' ) );

    This does not seem to work. The Password fields do nothing in that new case now. I can hard code two break tags in there, just where is the template stored? Thanks for your time, much apprechiated

    http://s8.postimg.org/vpdk0uhqd/Capture.jpg

    See? That´s not good in a responsive theme isn´t it? 😉

    The Confirm Password label is okay because the wording is longer so it breaks automatically.

    Plugin Author Jeff Farthing

    @jfarthing84

    Although I don’t recommend it, the code is in theme-my-login/modules/custom-passwords/custom-passwords.php.

    Oh but that just did the job most simply. I´ll just add it again when a new update is out. Thank you!

    This was a tricky bugger to track down. Naturally I find this after. =D

    Will we have:

    _e( 'Password', 'theme-my-login' );

    instead of

    _e( 'Password');

    as of 6.4?

    I have a decent set of modifications to 6.3.9 that provides for l10n if you want me to make a branch in your rep just send me a line.

    Thanks again Jeff.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] From where are the Password fields pulled?’ is closed to new replies.
Skip to toolbar