akcjaod 5.9.0
render_block_core_template_part_file
Opis — z kodu źródłowego
Fires when a block template part is loaded from a template part in the theme.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$template_part_id | string | The requested template part namespaced to the theme. |
$attributes | array | The block attributes. |
$template_part_file_path | string | Absolute path to the template path. |
$content | string | The template part content. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'render_block_core_template_part_file', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'render_block_core_template_part_file', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii