filtrod 3.6.0
show_post_locked_dialog
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
| Parametr | Typ | Opis |
|---|---|---|
$display | bool | Whether to display the dialog. Default true. |
$post | \WP_Post | Post object. |
$user | \WP_User | The 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
}
// 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