Fires when a block template part is loaded from a template post stored in the database.
$template_part_id, $attributes, $template_part_post, $content
Sortie :
@param string $template_part_id The requested template part namespaced to the theme. @param array $attributes The block attributes. @param WP_Post $template_part_post The template part post object. @param string $content The template part content.
// Ajouter une fonction au hook action 'render_block_core_template_part_post'
add_action('render_block_core_template_part_post', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($template_part_id, $attributes, $template_part_post, $content) {
// Votre code ici
error_log('Hook render_block_core_template_part_post déclenché');
}
Chargement des actualités...