WP HOOKS
filtrod 3.6.0

show_post_locked_dialog

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

Opis — z kodu źródłowego

Filters whether to show the post locked dialog.

Returning false from the filter will prevent the dialog from being displayed.

Parametry

ParametrTypOpis
$displayboolWhether to display the dialog. Default true.
$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_filter( 'show_post_locked_dialog', 'twoja_funkcja', 10, 3 );

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

Popularne w tej kategorii