WP HOOKS
akcjaod 2.5.0

xmlrpc_call

Args 3Plik wp-includes/class-wp-xmlrpc-server.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires after the XML-RPC user has been authenticated but before the rest of the method logic begins.

All built-in XML-RPC methods use the action xmlrpc_call, with a parameter equal to the method's name, e.g., wp.getUsersBlogs, wp.newPost, etc.

Parametry

ParametrTypOpis
$namestringThe method name.
$argsarray | stringThe escaped arguments passed to the method.
$server\wp_xmlrpc_serverThe XML-RPC server instance.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'xmlrpc_call', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii