Delete Placeholder in Reset password form

[ad_1]

Hello All.
Maybe someone has a snippet to remove this Placeholder?
I added an example below, but it doesn’t work for me.

Thanks for help!

add_filter( "um__password_form_field", "remove_placeholder", 10, 2 );

function remove_placeholder( $output, $set_mode ) {

    if( $set_mode == 'password' ) {
        $output = str_replace( 'placeholder="Enter your username or email"', 'placeholder=""', $output );
    }
    return $output;
}

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer