sharing_add_plugin_settings

The Jetpack by WordPress.com sharing add plugin settings function.

Description

sharing_add_plugin_settings( $links, $file ); 

Parameters (2)

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

Usage

  1. if ( !function_exists( 'sharing_add_plugin_settings' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/sharedaddy/sharedaddy.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 = sharing_add_plugin_settings($links, $file); 
  12.  

Defined (1)

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

/modules/sharedaddy/sharedaddy.php  
  1. function sharing_add_plugin_settings($links, $file) { 
  2. if ( $file == basename( dirname( __FILE__ ) ).'/'.basename( __FILE__ ) ) { 
  3. $links[] = '<a href="options-general.php?page=sharing.php">' . __( 'Settings', jetpack ) . '</a>'; 
  4. $links[] = '<a href="http://support.wordpress.com/sharing/">' . __( 'Support', jetpack ) . '</a>'; 
  5.  
  6. return $links;