gglnltcs_plugin_action_links

The BestWebSoft Google Analytics gglnltcs plugin action links function.

Description

gglnltcs_plugin_action_links( $links, $file ); 

Parameters (2)

0. $links
The links.
1. $file
The file.

Usage

  1. if ( !function_exists( 'gglnltcs_plugin_action_links' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bestwebsoft-google-analytics/bws-google-analytics.php'; 
  3.  
  4. // The links. 
  5. $links = null; 
  6.  
  7. // The file. 
  8. $file = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = gglnltcs_plugin_action_links($links, $file); 
  12.  

Defined (1)

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

/bws-google-analytics.php  
  1. function gglnltcs_plugin_action_links( $links, $file ) { 
  2. /** Static so we don't call plugin_basename on every plugin row. */ 
  3. static $this_plugin; 
  4. if ( ! $this_plugin ) 
  5. $this_plugin = plugin_basename( __FILE__ ); 
  6. if ( $file == $this_plugin ) { 
  7. $settings_link = '<a href="' . admin_url( 'admin.php?page=bws-google-analytics.php' ) . '">' . __( 'Settings', 'gglnltcs' ) . '</a>'; 
  8. array_unshift( $links, $settings_link ); 
  9. return $links;