gde_admin_custom_css

Include custom css for settings pages.

Description

gde_admin_custom_css( $hook ); 

Parameters (1)

0. $hook
The hook.

Usage

  1. if ( !function_exists( 'gde_admin_custom_css' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-doc-embedder/functions-admin.php'; 
  3.  
  4. // The hook. 
  5. $hook = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = gde_admin_custom_css($hook); 
  9.  

Defined (1)

The function is defined in the following location(s).

/functions-admin.php  
  1. function gde_admin_custom_css( $hook ) { 
  2. if ( isset( $_GET['page'] ) && ( $_GET['page'] == 'gde-settings' ) ) { 
  3. $css = GDE_PLUGIN_URL . 'css/admin-styles.css'; 
  4. wp_enqueue_style( 'gde_css', $css );