Change Admin Panel Footer Text

This WordPress snippet is used to customize the footer text in the WordPress admin panel. By default, the footer text in the WordPress admin panel acknowledges WordPress and provides a link to wordpress.org. With this snippet, you can replace the default text with your own custom text or HTML, thereby personalizing the dashboard for yourself or your clients.

This code works by utilizing the ‘admin_footer_text’ filter, which allows you to modify the footer text in the admin panel. The custom function passed into add_filter changes the $footer_text to a custom HTML string that includes links to WordPress and WPBeginner.

You can customize the footer text by editing the string assigned to $footer_text in the function. The string supports HTML, so you can include links, formatting, and even images if you’d like. In the provided snippet, two links are included in the footer: one linking to wordpress.org and the other to WPBeginner, a site that offers WordPress tutorials.

Remember to be careful when using HTML in strings to ensure that you’re not introducing any syntax errors that could cause the code to break.

PHP
add_filter(
	'admin_footer_text',
	function ( $footer_text ) {
		// Edit the line below to customize the footer text.
		$footer_text = 'Powered by <a href="https://www.wordpress.org" target="_blank" rel="noopener">WordPress</a> | WordPress Tutorials: <a href="https://www.wpbeginner.com" target="_blank" rel="noopener">WPBeginner</a>';
		
		return $footer_text;
	}
);