wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_maybe_disable_outgoing_pings_for_environment › WordPress Function

Od7.1.0
Przestarzałyn/a
› wp_maybe_disable_outgoing_pings_for_environment ( Brak parametrów )
Zdefiniowane na:
Codex:

Removes outgoing ping callbacks in non-production environments.

Hooked to do_all_pings at priority 1 so it runs before the default priority 10 callbacks. Does not remove do_all_enclosures.


Źródło

function wp_maybe_disable_outgoing_pings_for_environment() {
	if ( wp_should_disable_pings_for_environment() ) {
		remove_action( 'do_all_pings', 'do_all_pingbacks' );
		remove_action( 'do_all_pings', 'do_all_trackbacks' );
		remove_action( 'do_all_pings', 'generic_ping' );
	}
}