twttr_action_links

The Twitter Plugin twttr action links function.

Description

twttr_action_links( $links, $file ); 

Parameters (2)

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

Usage

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

Defined (1)

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

/twitter.php  
  1. function twttr_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 ) $this_plugin = plugin_basename(__FILE__); 
  5.  
  6. if ( $file == $this_plugin ) { 
  7. $settings_link = '<a href="admin.php?page=twitter-plugin/twitter.php">' . __( 'Settings', 'twitter' ) . '</a>'; 
  8. array_unshift( $links, $settings_link ); 
  9. return $links; 
  10. } // end function twttr_bttn_plgn_action_links