Filter hook 'admin_footer_text'

in WP Core File wp-admin/admin-footer.php at line 48

View Source

admin_footer_text

Filter Hook
Description
Filters the "Thank you" text displayed in the admin footer.

Hook Information

File Location wp-admin/admin-footer.php View on GitHub
Hook Type Filter
Line Number 48

Hook Parameters

Type Name Description
string $text The content that will be printed.

Usage Examples

Basic Usage
<?php
// Hook into admin_footer_text
add_filter('admin_footer_text', 'my_custom_filter', 10, 1);

function my_custom_filter($text) {
    // Your custom filtering logic here
    return $text;
}

Source Code Context

wp-admin/admin-footer.php:48 - How this hook is used in WordPress core
<?php
  43  		 *
  44  		 * @since 2.8.0
  45  		 *
  46  		 * @param string $text The content that will be printed.
  47  		 */
  48  		echo apply_filters( 'admin_footer_text', '<span id="footer-thankyou">' . $text . '</span>' );
  49  		?>
  50  	</p>
  51  	<p id="footer-upgrade" class="alignright">
  52  		<?php
  53  		/**

PHP Documentation

<?php
/**
		 * Filters the "Thank you" text displayed in the admin footer.
		 *
		 * @since 2.8.0
		 *
		 * @param string $text The content that will be printed.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-admin/admin-footer.php
Related Hooks

Related hooks will be displayed here in future updates.