WP HOOKS
akcjaod 3.6.0

post_locked_dialog

Args 2Plik wp-admin/includes/post.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires inside the post locked dialog before the buttons are displayed.

Parametry

ParametrTypOpis
$post\WP_PostPost object.
$user\WP_UserThe user with the lock for the post.

Wywołanie

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

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

Popularne w tej kategorii