Skip to content

Instantly share code, notes, and snippets.

@BeyondTheLoop
Created October 10, 2021 05:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Enqueue custom admin WordPress stylesheet
function enqueue_custom_admin_style_sheet() {
wp_register_style( 'name_of_custom_style_sheet', 'URL of style sheet goes here', false, '1.0.0' );
wp_enqueue_style('name_of_custom_style_sheet');
}
add_action( 'admin_enqueue_scripts', 'enqueue_custom_admin_style_sheet' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment