Fires after a template file is loaded.
$_template_file, $load_once, $args
Sortie :
@param string $_template_file The full path to the template file. @param bool $load_once Whether to require_once or require. @param array $args Additional arguments passed to the template.
// Ajouter une fonction au hook action 'wp_after_load_template'
add_action('wp_after_load_template', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($_template_file, $load_once, $args) {
// Votre code ici
error_log('Hook wp_after_load_template déclenché');
}
Chargement des actualités...