gglstmp_action_links

The Google Sitemap by BestWebSoft gglstmp action links function.

Description

gglstmp_action_links( $links, $file ); 

Parameters (2)

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

Usage

  1. if ( !function_exists( 'gglstmp_action_links' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-sitemap-by-bestwebsoft/google-sitemap-plugin.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 = gglstmp_action_links($links, $file); 
  12.  

Defined (1)

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

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