'awf_font_control', 'nopaging' => true ); $query = new WP_Query ($args); while ($query->have_posts ()) { $query->the_post (); $id = get_the_ID (); wp_delete_post ($id, true); } wp_reset_postdata (); } /** * Remove all theme mods. * * @since 1.0 */ function awf_remove_all_theme_mods() { remove_theme_mod('awf_body_font_family'); remove_theme_mod('awf_body_font_size'); remove_theme_mod('awf_body_line_height'); remove_theme_mod('awf_paragraphs_font_family'); remove_theme_mod('awf_paragraphs_font_size'); remove_theme_mod('awf_paragraphs_line_height'); remove_theme_mod('awf_paragraphs_text_decoration'); remove_theme_mod('awf_h1_font_family'); remove_theme_mod('awf_h1_font_size'); remove_theme_mod('awf_h1_line_height'); remove_theme_mod('awf_h1_text_decoration'); remove_theme_mod('awf_h2_font_family'); remove_theme_mod('awf_h2_font_size'); remove_theme_mod('awf_h2_line_height'); remove_theme_mod('awf_h2_text_decoration'); remove_theme_mod('awf_h3_font_family'); remove_theme_mod('awf_h3_font_size'); remove_theme_mod('awf_h3_line_height'); remove_theme_mod('awf_h3_text_decoration'); remove_theme_mod('awf_h4_font_family'); remove_theme_mod('awf_h4_font_size'); remove_theme_mod('awf_h4_line_height'); remove_theme_mod('awf_h4_text_decoration'); remove_theme_mod('awf_h5_font_family'); remove_theme_mod('awf_h5_font_size'); remove_theme_mod('awf_h5_line_height'); remove_theme_mod('awf_h5_text_decoration'); remove_theme_mod('awf_h6_font_family'); remove_theme_mod('awf_h6_font_size'); remove_theme_mod('awf_h6_line_height'); remove_theme_mod('awf_h6_text_decoration'); }