最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

urls - Add Link to PHP message

programmeradmin2浏览0评论

This feels like a noob question and I can't find references out there on how to do it. But I am adding a custom message the the default WP Login Page.

I want to add a hyperlink (to a support page on the front end) inside the text. How do I go about doing that?

function mito_login_message( $message ) {
if ( empty($message) ){
    return "<p>To log in, please use the same email address you used to confirm your participation in this virtual meeting. The password for the event can be found in the reminder emails you have received from the MITO Events Team over the past few days.</p>";
} else {
    return $message;
}

} add_filter( 'login_message', 'mito_login_message' );

This feels like a noob question and I can't find references out there on how to do it. But I am adding a custom message the the default WP Login Page.

I want to add a hyperlink (to a support page on the front end) inside the text. How do I go about doing that?

function mito_login_message( $message ) {
if ( empty($message) ){
    return "<p>To log in, please use the same email address you used to confirm your participation in this virtual meeting. The password for the event can be found in the reminder emails you have received from the MITO Events Team over the past few days.</p>";
} else {
    return $message;
}

} add_filter( 'login_message', 'mito_login_message' );

Share Improve this question asked Oct 24, 2020 at 12:11 Blake MillerBlake Miller 591 gold badge2 silver badges6 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Add this Code in your function.php file

 function mito_login_message( $message ) {
        if ( empty($message) ){
            return "<p><a href=''>hyperlink</a>  Please login to continue</strong></p>";
        } else {
            return $message;
        }
    }

add_filter( 'login_message', 'mito_login_message' );

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论