ddwpinfo_add_admin_footer_info

Add admin footer info - add it to the existing default footer info.

Description

(string) ddwpinfo_add_admin_footer_info(); 

Returns (string)

Enhanced string for admin footer info (left side).


Usage

  1. if ( !function_exists( 'ddwpinfo_add_admin_footer_info' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-german-de_de/includes/ddwpinfo/ddwpinfo-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = ddwpinfo_add_admin_footer_info(); 
  7.  

Defined (1)

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

/includes/ddwpinfo/ddwpinfo-functions.php  
  1. function ddwpinfo_add_admin_footer_info() { 
  2.  
  3. /** Our additional info string */ 
  4. if ( defined( 'WPGF_PLUGIN_BASEDIR' ) ) { 
  5.  
  6. $ddwpinfo_string = sprintf( 
  7. '<br />→ <a href="%s" title="%s">%s</a>',  
  8. admin_url( 'index.php?page=deckerweb-translations&tab=wp-german-formal' ),  
  9. 'Deutsche WordPress bersetzung via Sprach-Plugin WP Deutsch formelle Anrede von DECKERWEB',  
  10. 'Sprach-Plugin WP Deutsch formelle Anrede' 
  11. ); 
  12.  
  13. } else { 
  14.  
  15. $ddwpinfo_string = sprintf( 
  16. '<br />→ <a href="%s" title="%s">%s</a>',  
  17. admin_url( 'index.php?page=deckerweb-translations' ),  
  18. 'Deutsche bersetzungen via Sprach-Plugin(s) von DECKERWEB aktiv',  
  19. 'Informationen zu aktiven Sprach-Plugins' 
  20. ); 
  21.  
  22. } // end if 
  23.  
  24. /** Create the output, using the default existing string/ markup */ 
  25. $output = sprintf( 
  26. '<span id="footer-thankyou">%s %s</span>',  
  27. __( 'Thank you for creating with <a href="http://wordpress.org/">WordPress</a>.' ),  
  28. $ddwpinfo_string 
  29. ); 
  30.  
  31. /** Return all output for display - filterable */ 
  32. return apply_filters( 'ddwpinfo_filter_admin_footer_text', $output ); 
  33.  
  34. } // end of function ddwpinfo_add_admin_footer_info