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
评论列表(0条)