Created
April 15, 2017 19:32
-
-
Save IacopoC/1bd89e9e02bc79da519ec4f87e01b8d9 to your computer and use it in GitHub Desktop.
Enqueue Css in WordPress plugin
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
/** | |
* Enqueue css | |
**/ | |
function load_custom_wp_admin_style() { | |
wp_register_style( 'style.css', plugins_url('/css/style.css', __FILE__), false, '1.0.0' ); | |
wp_enqueue_style( 'style.css' ); | |
} | |
add_action( 'admin_enqueue_scripts', 'load_custom_wp_admin_style' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment