wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_maybe_disable_xmlrpc_pingback_for_environment › WordPress Function

Depuis7.1.0
Dépréciéen/a
› wp_maybe_disable_xmlrpc_pingback_for_environment ( $methods )
Paramètres:
  • (string[]) $methods An array of XML-RPC methods, keyed by their methodName.
    Requis: Oui
Retourne:
  • (string[]) Modified array of XML-RPC methods.
Défini(e) dans:
Codex:

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



Source

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

	return $methods;
}