cptui_footer

Display footer links and plugin credits.

Description

(string) cptui_footer( (string) $original = '' ); 

Returns (string)

$value HTML for footer.

Parameters (1)

0. $original — Optional. (string) => ''
Original footer content. Optional. Default empty string.

Usage

  1. if ( !function_exists( 'cptui_footer' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'custom-post-type-ui/inc/utility.php'; 
  3.  
  4. // Original footer content. Optional. Default empty string. 
  5. $original = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = cptui_footer($original); 
  9.  

Defined (1)

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

/inc/utility.php  
  1. function cptui_footer( $original = '' ) { 
  2.  
  3. $screen = get_current_screen(); 
  4.  
  5. if ( ! is_object( $screen ) || 'cptui_main_menu' !== $screen->parent_base ) { 
  6. return $original; 
  7.  
  8. return sprintf( 
  9. __( '%s version %s by %s', 'custom-post-type-ui' ),  
  10. __( 'Custom Post Type UI', 'custom-post-type-ui' ),  
  11. '<a href="https://webdevstudios.com" target="_blank">WebDevStudios</a>' 
  12. ) . ' - ' . 
  13. sprintf( 
  14. '<a href="http://wordpress.org/support/plugin/custom-post-type-ui" target="_blank">%s</a>',  
  15. __( 'Support forums', 'custom-post-type-ui' ) 
  16. ) . ' - ' . 
  17. __( 'Follow on Twitter:', 'custom-post-type-ui' ) . 
  18. sprintf( 
  19. ' %s',  
  20. '<a href="https://twitter.com/webdevstudios" target="_blank">WebDevStudios</a>' 
  21. );