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

How to remove default action from a plugin?

programmeradmin0浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论