-
-
Save bewho/44774e31a26126f71aaf62f2fbc192bb to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
/** | |
* Enqueue 404 Script | |
* | |
*/ | |
function be_404_script() { | |
if( is_404() ) | |
wp_enqueue_script( 'be-404', get_stylesheet_directory_uri() . '/js/404.js', array( 'jquery' ), '1.0', true ); | |
} | |
add_action( 'wp_enqueue_scripts', 'be_404_script' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment