Fires when a requested block template part does not exist in the database nor in the theme.
$template_part_id, $attributes, $template_part_file_path
Sortie :
@param string $template_part_id The requested template part namespaced to the theme. @param array $attributes The block attributes. @param string $template_part_file_path Absolute path to the not found template path.
// Ajouter une fonction au hook action 'render_block_core_template_part_none'
add_action('render_block_core_template_part_none', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($template_part_id, $attributes, $template_part_file_path) {
// Votre code ici
error_log('Hook render_block_core_template_part_none déclenché');
}
Chargement des actualités...