WP HOOKS
akcjaod 4.4.0

page_attributes_meta_box_template

Args 2Plik wp-admin/includes/meta-boxes.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires immediately after the label inside the 'Template' section of the 'Page Attributes' meta box.

Parametry

ParametrTypOpis
$templatestring | falseThe template used for the current post.
$post\WP_PostThe current post.

Wywołanie

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

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

Popularne w tej kategorii