goolytics_authorplugins_head

Writes CSS and JS to the plugin page's header for displaying my other plugins.

Description

goolytics_authorplugins_head(); 

Usage

  1. if ( !function_exists( 'goolytics_authorplugins_head' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'goolytics-simple-google-analytics/inc/authorplugins.inc.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = goolytics_authorplugins_head(); 
  7.  

Defined (1)

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

/inc/authorplugins.inc.php  
  1. function goolytics_authorplugins_head() { 
  2. global $pagenow; 
  3.  
  4. wp_enqueue_script( 'os_authorplugins_script', trailingslashit(plugins_url( 'js/', dirname(__FILE__) )) . "os_authorplugins_script.js", array('jquery'), GOOLYTICSVERSION ); 
  5. wp_enqueue_style( 'os_authorplugins_style', trailingslashit(plugins_url( 'css/', dirname(__FILE__) )) . "os_authorplugins_style.css", array(), GOOLYTICSVERSION );