Last active
August 19, 2016 15:13
-
-
Save mspalex/86665b64a710d1f0f078 to your computer and use it in GitHub Desktop.
Wordpress - Customize Backoffice footer messages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Remove or Replace the Update WP footer link | |
add_filter('update_footer', remove_admin_footer_upgrade, 1000); | |
function remove_admin_footer_upgrade($footer_text =''){ | |
return 'your message'; | |
} | |
// Remove or Replace the Powered By text | |
add_filter('admin_footer_text', 'remove_footer_admin'); | |
function remove_footer_admin () { | |
$link = "http://www.yourcompanysite.pt/"; | |
echo "Website developed by <a href=\"$link\" target=\"_blank\">YourCompany</a>"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment