Wordpress后台添加欢迎提示语

Function代码

//欢迎提示语,by minirizhi.com
add_action( 'welcome_panel', 'minirizhi_admin_notice' );
function minirizhi_admin_notice() {
  ?>
  <style type="text/css">
    .about-description a{
      text-decoration:none;
    }
  </style>
  <div class="notice notice-info">
  <p class="about-description">嗨,欢迎开始创作</p>
  </div>
  <?php
}
文章目录