// Enqueue le script JavaScript dans WordPress function enqueue_latest_posts_script() { wp_enqueue_script('latest-posts-script', plugin_dir_url(__FILE__) . 'scripts.js', [], false, true); } add_action('wp_enqueue_scripts', 'enqueue_latest_posts_script'); // Enqueue le script JavaScript dans WordPress function enqueue_latest_posts_script() { wp_enqueue_script('latest-posts-script', plugin_dir_url(__FILE__) . 'scripts.js', [], false, true); } add_action('wp_enqueue_scripts', 'enqueue_latest_posts_script'); Skip to main content

// Enqueue le script JavaScript dans WordPress
function enqueue_latest_posts_script() {
wp_enqueue_script(‘latest-posts-script’, plugin_dir_url(__FILE__) . ‘scripts.js’, [], false, true);
}
add_action(‘wp_enqueue_scripts’, ‘enqueue_latest_posts_script’);