WP HOOKS
filtrod 4.0.0

wp_editor_expand

Args 2Plik wp-admin/edit-form-advanced.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters whether to enable the 'expand' functionality in the post editor.

Parametry

ParametrTypOpis
$expandboolWhether to enable the 'expand' functionality. Default true.
$post_typestringPost type.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_editor_expand', 'twoja_funkcja', 10, 2 );

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

Popularne w tej kategorii