WordPress更改标题…/来自插件的标题(无需模板编辑)

我已经对此进行了谷歌搜索, 但没有找到任何答案

是否可以在不进行模板编辑的情况下更改wordpress标题?

我想要改变

<title> Change this from a wp plugin  </title>

感谢你的帮助


#1


创建一个插件文件并粘贴下面的代码…

add_filter( 'wp_title', 'custom_title', 20 );

function custom_title( $title ) {
    return  'New title';
}

来源:

https://www.srcmini02.com/64237.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_37494.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?