include admin styles

This commit is contained in:
jorge 2022-07-22 14:18:04 +02:00
parent 41e00112b4
commit 8c60e7f42d
1 changed files with 8 additions and 5 deletions

View File

@ -19,8 +19,11 @@
* @subpackage hangar-wp-plugin/includes * @subpackage hangar-wp-plugin/includes
* @author Jorge - vitrubio.net <jorge@vitrubio.net> * @author Jorge - vitrubio.net <jorge@vitrubio.net>
*/ */
if( ! function_exists('hangar_admin_styles') ){
function hangar_admin_styles() { function hangar_admin_styles() {
add_editor_style( 'assets/css/hangar-wpplugin-admin-styles.css' ); if ( is_admin() ) {
} add_editor_style( 'assets/css/hangar-wpplugin-admin-styles.css' );
add_action( 'admin_init', 'hangar_admin_styles' ); }
}
add_action( 'admin_init', 'hangar_admin_styles' );
}