wccs_plugin_action_links

The Woocommerce Category based sitemaps wccs plugin action links function.

Description

wccs_plugin_action_links( $links, $file ); 

Parameters (2)

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

Usage

  1. if ( !function_exists( 'wccs_plugin_action_links' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-category-based-sitemaps/index.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 = wccs_plugin_action_links($links, $file); 
  12.  

Defined (1)

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

/index.php  
  1. function wccs_plugin_action_links( $links, $file ) { 
  2. if ( $file == plugin_basename( dirname(__FILE__).'/index.php' ) ) { 
  3. $links[] = '<a href="admin.php?page=wc_category_sitemaps">'.__('Settings ', 'wccs').'</a>'; 
  4.  
  5. return $links;