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 ) {
- if ( isset( $_GET['page'] ) && ( $_GET['page'] == 'gde-settings' ) ) {
- $css = GDE_PLUGIN_URL . 'css/admin-styles.css';
- wp_enqueue_style( 'gde_css', $css );
- }
- }