jfb_add_plugin_links

The WP-FB-AutoConnect jfb add plugin links function.

Description

jfb_add_plugin_links( $links, $file ); 

Parameters (2)

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

Usage

  1. if ( !function_exists( 'jfb_add_plugin_links' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'wp-fb-autoconnect/AdminPage.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 = jfb_add_plugin_links($links, $file); 
  12.  

Defined (1)

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

/AdminPage.php  
  1. function jfb_add_plugin_links($links, $file) 
  2. if( dirname(plugin_basename( __FILE__ )) == dirname($file) ) 
  3. $links[] = '<a href="options-general.php?page=' . "wp-fb-autoconnect" .'">' . __('Settings', 'wp-fb-autoconnect') . '</a>'; 
  4. return $links;