WP HOOKS
filtrod 4.9.0

replace_editor

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

Opis — z kodu źródłowego

Allows replacement of the editor.

Parametry

ParametrTypOpis
$replaceboolWhether to replace the editor. Default false.
$post\WP_PostPost object.

Wywołanie

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

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

Popularne w tej kategorii