twttr_action_links
The Twitter Plugin twttr action links function.
Description
Parameters (2)
- 0. $links
- The links.
- 1. $file
- The file.
Usage
if ( !function_exists( 'twttr_action_links' ) ) { require_once ABSPATH . PLUGINDIR . 'twitter-plugin/twitter.php'; } // The links. $links = null; // The file. $file = null; // NOTICE! Understand what this does before running. $result = twttr_action_links($links, $file);
Defined (1)
The function is defined in the following location(s).
- /twitter.php
- function twttr_action_links( $links, $file ) {
- //Static so we don't call plugin_basename on every plugin row.
- static $this_plugin;
- if ( ! $this_plugin ) $this_plugin = plugin_basename(__FILE__);
- if ( $file == $this_plugin ) {
- $settings_link = '<a href="admin.php?page=twitter-plugin/twitter.php">' . __( 'Settings', 'twitter' ) . '</a>';
- array_unshift( $links, $settings_link );
- }
- return $links;
- } // end function twttr_bttn_plgn_action_links