Created
July 23, 2016 16:34
-
-
Save htxuankhoa/f035630b76c7f92b8711781216eb808f to your computer and use it in GitHub Desktop.
wordpress snippets
This file contains 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
// Remove x-pingback header tag | |
function remove_x_pingback($headers) | |
{ | |
unset($headers['X-Pingback']); | |
return $headers; | |
} | |
add_filter('wp_headers', 'remove_x_pingback'); | |
// === | |
// Change user password manually for testing | |
// 1. Use phpMyAdmin, go to [wp_users] table | |
// 2. Edit specific user | |
// 3. At [Funtion] column, choose : MD5 | |
// 4. At [Value] column, type password you want | |
// 5. Save changes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment