admin_footer_text

Filters the "Thank you" text displayed in the admin footer.

Description

apply_filters( 'admin_footer_text', (string) $span_id_footer_thankyou_text_span ); 

Parameters (1)

0. $span_id_footer_thankyou_text_span — Optional. (string) => '' . $text . ''
The span id footer thankyou text span.

Usage

To run the hook, copy the example below.
  1. $span_id_footer_thankyou_text_span = apply_filters( 'admin_footer_text', $span_id_footer_thankyou_text_span ); 
  2.  
  3. if ( !empty( $span_id_footer_thankyou_text_span ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the admin_footer_text callback 
  2. function filter_admin_footer_text( $span_id_footer_thankyou_text_span ) { 
  3. // make filter magic happen here... 
  4. return $span_id_footer_thankyou_text_span
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'admin_footer_text', 'filter_admin_footer_text', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'admin_footer_text', 'filter_admin_footer_text', 10, 1 ); 

Defined (1)

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

/wp-admin/admin-footer.php  
  1. echo apply_filters( 'admin_footer_text', '<span id="footer-thankyou">' . $text . '</span>' );