ddw_gftb_plugin_links

Add various support links to plugin page.

Description

(strings) ddw_gftb_plugin_links( $gftb_links, $gftb_file ); 

Returns (strings)

plugin links

Parameters (2)

0. $gftb_links
The gftb links.
1. $gftb_file
The gftb file.

Usage

  1. if ( !function_exists( 'ddw_gftb_plugin_links' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'gravity-forms-toolbar/lib/gftb-admin.php'; 
  3.  
  4. // The gftb links. 
  5. $gftb_links = null; 
  6.  
  7. // The gftb file. 
  8. $gftb_file = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = ddw_gftb_plugin_links($gftb_links, $gftb_file); 
  12.  

Defined (1)

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

/lib/gftb-admin.php  
  1. function ddw_gftb_plugin_links( $gftb_links, $gftb_file ) { 
  2.  
  3. if ( ! current_user_can( 'install_plugins' ) ) 
  4. return $gftb_links; 
  5.  
  6. if ( $gftb_file == GFTB_PLUGIN_BASEDIR . '/gravity-forms-toolbar.php' ) { 
  7. $gftb_links[] = '<a href="http://wordpress.org/extend/plugins/gravity-forms-toolbar/faq/" target="_new" title="' . __( 'FAQ', 'gravity-forms-toolbar' ) . '">' . __( 'FAQ', 'gravity-forms-toolbar' ) . '</a>'; 
  8. $gftb_links[] = '<a href="http://wordpress.org/support/plugin/gravity-forms-toolbar" target="_new" title="' . __( 'Support', 'gravity-forms-toolbar' ) . '">' . __( 'Support', 'gravity-forms-toolbar' ) . '</a>'; 
  9. $gftb_links[] = '<a href="' . __( 'http://genesisthemes.de/en/donate/', 'gravity-forms-toolbar' ) . '" target="_new" title="' . __( 'Donate', 'gravity-forms-toolbar' ) . '">' . __( 'Donate', 'gravity-forms-toolbar' ) . '</a>'; 
  10.  
  11. return $gftb_links; 
  12.  
  13. } // end of function ddw_gftb_plugin_links