WP HOOKS
filtrod 5.0.0

use_block_editor_for_post

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

Opis — z kodu źródłowego

Filters whether a post is able to be edited in the block editor.

Parametry

ParametrTypOpis
$use_block_editorboolWhether the post can be edited or not.
$post\WP_PostThe 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
}

Popularne w tej kategorii