filtrod 5.0.0
use_block_editor_for_post
Opis — z kodu źródłowego
Filters whether a post is able to be edited in the block editor.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$use_block_editor | bool | Whether the post can be edited or not. |
$post | \WP_Post | The post being checked. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'use_block_editor_for_post', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'use_block_editor_for_post', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii