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