ddw_gftb_settings_page_link

Add "Settings" link to plugin page.

Description

(strings) ddw_gftb_settings_page_link( $gftb_links ); 

Returns (strings)

settings link

Parameters (1)

0. $gftb_links
The gftb links.

Usage

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

Defined (1)

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

/lib/gftb-admin-extras.php  
  1. function ddw_gftb_settings_page_link( $gftb_links ) { 
  2.  
  3. /** Plugin's settings page link */ 
  4. $gftb_settings_link = sprintf( 
  5. '<a href="%s" title="%s">%s</a>',  
  6. admin_url( 'options-general.php?page=ddw_gftb_options_page' ),  
  7. esc_html__( 'Go to the settings page', 'gravity-forms-toolbar' ),  
  8. esc_attr__( 'Settings', 'gravity-forms-toolbar' ) 
  9. ); 
  10.  
  11. /** Set the order of the links */ 
  12. array_unshift( $gftb_links, $gftb_settings_link ); 
  13.  
  14. /** Display plugin settings links */ 
  15. return apply_filters( 'gftb_filter_settings_page_link', $gftb_links ); 
  16.  
  17. } // end of function ddw_gftb_settings_page_link