filtrod 5.0.0
use_block_editor_for_post_type
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 type can be edited or not. Default true. |
$post_type | string | The post type being checked. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'use_block_editor_for_post_type', '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_type', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii