xarxaprod-wp-plugin/includes/stylesheet-admin.php

23 lines
605 B
PHP
Raw Normal View History

2024-01-09 16:22:35 +01:00
<?php
/**
* Registers admin stylesheet for a custom plugin.
*
* This class defines all code necessary to run during the plugin's activation.
*
* @link https://xarxaprod.cat
* @since 1.0.0
* @package xarxaprod-wp-plugin
* @subpackage xarxaprod-wp-plugin/includes
* @author Jorge - vitrubio.net <jorge@vitrubio.net>
*
*/
if( ! function_exists('xarxaprod_admin_styles') ){
function xarxaprod_admin_styles() {
if ( is_admin() ) {
add_editor_style( 'assets/css/xarxaprod-wpplugin-admin-styles.css' );
}
}
add_action( 'admin_init', 'xarxaprod_admin_styles' );
}