Skip to content

Instantly share code, notes, and snippets.

@man4toman
Created March 17, 2022 06:21
Show Gist options
  • Save man4toman/1f6fa050d05ab0643388ad0231b62483 to your computer and use it in GitHub Desktop.
Save man4toman/1f6fa050d05ab0643388ad0231b62483 to your computer and use it in GitHub Desktop.
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