Created
December 19, 2022 15:09
-
-
Save thierrypigot/23dde8d03927b408a55d4ca989f1423b to your computer and use it in GitHub Desktop.
Ajoute un script supplémentaire à toutes les pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function add_my_script() { | |
wp_enqueue_script( 'my-script', get_stylesheet_directory_uri() . '/script.js' ); | |
} | |
add_action( 'wp_head', 'add_my_script' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment