Created
March 17, 2022 06:21
-
-
Save man4toman/1f6fa050d05ab0643388ad0231b62483 to your computer and use it in GitHub Desktop.
Add custom CSS and JavaScript to Digits plugin's page
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_custom_assets_to_digits_page() { | |
wp_register_script( 'myprefix-js', '', array("jquery"), '', true ); | |
wp_enqueue_script( 'myprefix-js' ); | |
wp_add_inline_script( 'myprefix-js', "JS goes here"); | |
} | |
add_action( 'login_enqueue_scripts', 'add_custom_assets_to_digits_page', 99); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment