jetpack_extras_action_link

The Custom Tweaks for Jetpack by BarryCarlyon jetpack extras action link function.

Description

jetpack_extras_action_link( $links, $file ); 

Parameters (2)

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

Usage

  1. if ( !function_exists( 'jetpack_extras_action_link' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'custom-tweaks-for-jetpack-by-barrycarlyon/jetpack_extras.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 = jetpack_extras_action_link($links, $file); 
  12.  

Defined (1)

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

/jetpack_extras.php  
  1. function jetpack_extras_action_link($links, $file) { 
  2. if ($file == JETPACK_META_BASENAME
  3. array_unshift($links, '<a href="' . admin_url('options-general.php?page=sharing') . '" title="Settings">' . __('Settings', 'jetpack') . '</a>'); 
  4. return $links;