akcjaod 2.5.0
xmlrpc_call
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
| Parametr | Typ | Opis |
|---|---|---|
$name | string | The method name. |
$args | array | string | The escaped arguments passed to the method. |
$server | \wp_xmlrpc_server | The 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
}
// 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