wordpress移除wp-embed.min.js文件-WordPress主题

摘要:自wordpress4.4开始主题会自动在底部加载一个自带的wp-embed.min.js文件,此功能对我们用处不大,大…

自wordpress4.4开始主题会自动在底部加载一个自带的wp-embed.min.js文件,此功能对我们用处不大,大可以移除或是禁用,
禁用embeds其实还是比较复杂(代码比较多),官方甚至为此开发了一个插件,大家可以使用插件来禁用:Disable Embeds插件,如果不想使用插件,那就将插件里面的代码复制到主题的functions.php文件即可。

来源:http://www.wazhuti.com/668.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_13202.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?