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