Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add custom CSS and JavaScript to Digits plugin's page
<?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