wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_maybe_disable_xmlrpc_pingback_for_environment › WordPress Function

Seit7.1.0
Veraltetn/v
wp_maybe_disable_xmlrpc_pingback_for_environment ( $methods )
Parameter:
  • (string[]) $methods An array of XML-RPC methods, keyed by their methodName.
    Erforderlich: Ja
Gibt zurück:
  • (string[]) Modified array of XML-RPC methods.
Definiert in:
Codex:

Removes the pingback XML-RPC method in non-production environments.



Quellcode

function wp_maybe_disable_xmlrpc_pingback_for_environment( $methods ) {
	if ( wp_should_disable_pings_for_environment() ) {
		unset( $methods['pingback.ping'] );
	}

	return $methods;
}