catchresponsive_flush_transients

Flush out all transients.

Description

catchresponsive_flush_transients(); 

Usage

  1. if ( !function_exists( 'catchresponsive_flush_transients' ) ) { 
  2. require_once '/inc/catchresponsive-core.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = catchresponsive_flush_transients(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/inc/catchresponsive-core.php  
  1. function catchresponsive_flush_transients() { 
  2. delete_transient( 'catchresponsive_featured_content' ); 
  3.  
  4. delete_transient( 'catchresponsive_featured_slider' ); 
  5.  
  6. //@remove Remove version check when WordPress 4.8 is released 
  7. delete_transient( 'catchresponsive_favicon' ); 
  8.  
  9. //@remove Remove version check when WordPress 4.8 is released 
  10. delete_transient( 'catchresponsive_webclip' ); 
  11.  
  12. delete_transient( 'catchresponsive_custom_css' ); 
  13.  
  14. delete_transient( 'catchresponsive_footer_content' ); 
  15.  
  16. delete_transient( 'catchresponsive_promotion_headline' ); 
  17.  
  18. delete_transient( 'catchresponsive_featured_image' ); 
  19.  
  20. delete_transient( 'catchresponsive_social_icons' ); 
  21.  
  22. delete_transient( 'catchresponsive_scrollup' ); 
  23.  
  24. delete_transient( 'all_the_cool_cats' ); 
  25.  
  26. //Add Catchresponsive default themes if there is no values 
  27. if ( !get_theme_mod('catchresponsive_theme_options') ) { 
  28. set_theme_mod( 'catchresponsive_theme_options', catchresponsive_get_default_theme_options() );