nf_admin_footer_text

The Ninja Forms nf admin footer text function.

Description

nf_admin_footer_text( $footer_text ); 

Parameters (1)

0. $footer_text
The footer text.

Usage

  1. if ( !function_exists( 'nf_admin_footer_text' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/functions.php'; 
  3.  
  4. // The footer text. 
  5. $footer_text = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = nf_admin_footer_text($footer_text); 
  9.  

Defined (1)

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

/deprecated/includes/functions.php  
  1. function nf_admin_footer_text( $footer_text ) { 
  2. global $current_screen, $pagenow, $typenow; 
  3.  
  4. $current_tab = ninja_forms_get_current_tab(); 
  5.  
  6. // only display custom text on Ninja Admin Pages 
  7. if ( isset( $current_screen->id ) && strpos( $current_screen->id, 'ninja' ) !== false || ( ( $pagenow == 'edit.php' || $pagenow == 'post.php' ) && $typenow == nf_sub ) ) { 
  8. $footer_text = sprintf( __( 'Please rate %sNinja Forms%s %s on %sWordPress.org%s to help us keep this plugin free. Thank you from the WP Ninjas team!', 'ninja-forms' ), '<strong>', '</strong>', '<a href="http://wordpress.org/support/view/plugin-reviews/ninja-forms?filter=5" target="_blank">★★★★★</a>', '<a href="http://wordpress.org/support/view/plugin-reviews/ninja-forms?filter=5" target="_blank">', '</a>' ); 
  9.  
  10. if ( 'builder' == $current_tab ) { 
  11. $footer_text = ''; 
  12.  
  13. return $footer_text;