How to remove default action from a plugin?

I'm trying to remove the default wordpress action:add_action( 'do_pings', 'do_all_pings', 10, 1

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744723062a4590023.html

相关推荐

  • How to remove default action from a plugin?

    I'm trying to remove the default wordpress action:add_action( 'do_pings', 'do_all_pings', 10, 1

    1天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信