WP HOOKS
akcjaod 3.4.0

xmlrpc_call_success_mw_newPost

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

Opis — z kodu źródłowego

Fires after a new post has been successfully created via the XML-RPC MovableType API.

Parametry

ParametrTypOpis
$post_idintID of the new post.
$argsarrayAn array of arguments to create the new post.

Wywołanie

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

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

Popularne w tej kategorii