Skip to content

Instantly share code, notes, and snippets.

@htxuankhoa
Created July 23, 2016 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save htxuankhoa/f035630b76c7f92b8711781216eb808f to your computer and use it in GitHub Desktop.
Save htxuankhoa/f035630b76c7f92b8711781216eb808f to your computer and use it in GitHub Desktop.
wordpress snippets
// 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