Skip to content

Instantly share code, notes, and snippets.

@glueckpress
Last active December 14, 2015 21:51
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 glueckpress/4529922 to your computer and use it in GitHub Desktop.
Save glueckpress/4529922 to your computer and use it in GitHub Desktop.
[WordPress] Remove theme modifications (custom background, custom header, custom menus)
<?php
/* flush all theme modifications; check via get_theme_mods() */
// remove_theme_mods();
/* flush all but menus */
// remove_theme_mod('header_textcolor');
// remove_theme_mod('background_color');
// remove_theme_mod('background_image');
// remove_theme_mod('background_position_x');
// remove_theme_mod('background_attachment');
// remove_theme_mod('background_image_thumb');
// remove_theme_mod('header_image');
// remove_theme_mod('header_image_data');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment