admin_footer_text
Filters the "Thank you" text displayed in the admin footer.
Description
Parameters (1)
- 0. $span_id_footer_thankyou_text_span — Optional. (string) =>
'
' - The span id footer thankyou text span.
Usage
- To run the hook, copy the example below.
- $span_id_footer_thankyou_text_span = apply_filters( 'admin_footer_text', $span_id_footer_thankyou_text_span );
- if ( !empty( $span_id_footer_thankyou_text_span ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the admin_footer_text callback
- function filter_admin_footer_text( $span_id_footer_thankyou_text_span ) {
- // make filter magic happen here...
- return $span_id_footer_thankyou_text_span;
- };
- // add the filter
- add_filter( 'admin_footer_text', 'filter_admin_footer_text', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- 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
- echo apply_filters( 'admin_footer_text', '<span id="footer-thankyou">' . $text . '</span>' );