gde_admin_custom_css
Include custom css for settings pages.
Description
gde_admin_custom_css( $hook );
Parameters (1)
- 0. $hook
- The hook.
Usage
if ( !function_exists( 'gde_admin_custom_css' ) ) { require_once ABSPATH . PLUGINDIR . 'google-doc-embedder/functions-admin.php'; } // The hook. $hook = null; // NOTICE! Understand what this does before running. $result = gde_admin_custom_css($hook);
Defined (1)
The function is defined in the following location(s).
- /functions-admin.php
- function gde_admin_custom_css( $hook ) {
- global $wp_version;
- if ( isset( $_GET['page'] ) && ( $_GET['page'] == 'gde-settings' ) ) {
- if ( version_compare( $wp_version, '3.8-RC1', '>=' ) ) {
- $css = GDE_PLUGIN_URL . 'css/admin-styles38.css';
- } else {
- $css = GDE_PLUGIN_URL . 'css/admin-styles.css';
- }
- wp_enqueue_style( 'gde_css', $css );
- // native color picker
- wp_enqueue_style( 'wp-color-picker' );
- }
- }