customization – Show Site Name on WP login screen
Question
I’m trying to create a generic, re-usable function that shows the site name on the login screen. It works with just static text, but how do I pull in the site name dynamically? Here’s what I’ve tried:
function custom_login_message() {
$message="<p class="natz-login">Log in to <?php echo get_option( "name' ); ?> </p><br />';
return $message;
}
add_filter('login_message', 'custom_login_message');
This is obviously wrong, but what do is use instead of <?php echo get_option( 'name' ); ?>
?
0
2 months
2022-06-28T07:07:08-05:00
2022-06-28T07:07:08-05:00 0 Answers
0 views
0
Leave an answer