akcjaod 4.4.0
page_attributes_meta_box_template
Opis — z kodu źródłowego
Fires immediately after the label inside the 'Template' section of the 'Page Attributes' meta box.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$template | string | false | The template used for the current post. |
$post | \WP_Post | The 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
}
// 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