admin管理员组文章数量:1391969
I'm trying to remove the default wordpress action:
add_action( 'do_pings', 'do_all_pings', 10, 1 );
from wp-includes/default-filters.php
This is the code I have (plugin):
add_action( 'init', 'remove_do_all_pings' );
function remove_do_all_pings() {
remove_action( 'do_pings', 'do_all_pings' );
}
will this work? I have no way of testing because I have no clue how this ping thing works.
本文标签: How to remove default action from a plugin
版权声明:本文标题:How to remove default action from a plugin? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744723061a2621808.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论