admin_footer_text
Allows you to change the HTML block containing the “Thank you for creating with WordPress” text displayed at the bottom left of the admin area.
The content passed to the filter by default in a RU installation:
<span id="footer-thankyou"> Thank you for creating with <a href="https://ru.wordpress.org/">WordPress</a>. </span>
Usage
add_filter( 'admin_footer_text', 'wp_kama_admin_footer_text_filter' );
/**
* Function for `admin_footer_text` filter-hook.
*
* @param string $text The content that will be printed.
*
* @return string
*/
function wp_kama_admin_footer_text_filter( $text ){
// filter...
return $text;
}
- $text(string)
- The content that will be displayed.
Examples
#1 Change the block
add_filter( 'admin_footer_text', 'admin_footer_copyright' );
function admin_footer_copyright() {
return '<span class="footer-copyright">The site was developed by Acme Inc.</span>';
}
#2 Remove the thank-you block
add_filter( 'admin_footer_text', '__return_empty_string' );
Changelog
| Since 2.8.0 | Introduced. |
Where the hook is called
In file: /wp-admin/admin-footer.php
admin_footer_text
wp-admin/admin-footer.php 48
echo apply_filters( 'admin_footer_text', '<span id="footer-thankyou">' . $text . '</span>' );