ddw_wcde_settings_page_link

Add "Settings" link to plugin page.

Description

(strings) ddw_wcde_settings_page_link( (string) $wcde_links ); 

Returns (strings)

Admin settings pages link.

Parameters (1)

0. $wcde_links (string)
HTML link strings/ admin URLs.

Usage

  1. if ( !function_exists( 'ddw_wcde_settings_page_link' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-german-de_de/includes/wcde-admin-extras.php'; 
  3.  
  4. // HTML link strings/ admin URLs. 
  5. $wcde_links = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = ddw_wcde_settings_page_link($wcde_links); 
  9.  

Defined (1)

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

/includes/wcde-admin-extras.php  
  1. function ddw_wcde_settings_page_link( $wcde_links ) { 
  2.  
  3. /** WooCommerce Admin link */ 
  4. $wcde_settings_link = sprintf( 
  5. '<a href="%1$s" title="%2$s">%3$s</a> | <a href="%4$s" title="%5$s">%6$s</a>',  
  6. admin_url( ddw_wcde_woocommerce_settings_link() . '&tab=wcdetranslations' ),  
  7. sprintf( 
  8. esc_html__( 'Go to the %s settings page', 'woocommerce-german' ),  
  9. __( 'WooCommerce German (de_DE)', 'woocommerce-german' ) 
  10. ),  
  11. esc_attr__( 'Translation Settings', 'woocommerce-german' ),  
  12. admin_url( 'index.php?page=deckerweb-translations&tab=woocommerce-german' ),  
  13. 'bersetzungs-Hinweise …',  
  14. 'Hinweise' 
  15. ); 
  16.  
  17. /** Set the order of the links */ 
  18. array_unshift( $wcde_links, $wcde_settings_link ); 
  19.  
  20. /** Display plugin settings links */ 
  21. return apply_filters( 'wcde_filter_settings_page_link', $wcde_links ); 
  22.  
  23. } // end of function ddw_wcde_settings_page_link