ciao!
in un custom template devo integrare un js per un plugiin.
come da loro documentazione, devo farlo dal functions.php:
codice:
add_action('wp_enqueue_scripts', 'qg_enqueue');
function qg_enqueue() {
var_dump(get_theme_file_uri('/js/rank-math-integration.js'));
wp_enqueue_script('rank-math-integration', get_theme_file_uri('/js/rank-math-integration.js'), [], false, true);
// wp_enqueue_script('rank-math-integration', get_theme_file_uri('/js/rank-math-integration.js'), ['wp-hooks', 'rank-math-analyzer'], null, true);
}
il problema è che non mi esce neanche il var_dump, come se non venisse proprio richiamato.
dove sbaglio??