layers_check_for_preset_backup

The Layers layers check for preset backup function.

Description

layers_check_for_preset_backup(); 

Usage

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

Defined (1)

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

/core/widgets/init.php  
  1. function layers_check_for_preset_backup() { 
  2. global $wp_customize; 
  3.  
  4. if( $wp_customize ) { 
  5. if( get_option( 'layers_cron_page_backup' ) ) { 
  6.  
  7. $page_id = get_option( 'layers_cron_page_backup' ); 
  8.  
  9. $page = get_post( $page_id ); 
  10. if( NULL == $page ) return; 
  11.  
  12.  
  13. delete_option( 'layers_cron_page_backup' );