layers_backup_sidebars_widgets

The Layers layers backup sidebars widgets function.

Description

layers_backup_sidebars_widgets( (bool) $no_revisions = false ); 

Parameters (1)

0. $no_revisions — Optional. (bool) => false
The no revisions.

Usage

  1. if ( !function_exists( 'layers_backup_sidebars_widgets' ) ) { 
  2. require_once '/core/widgets/init.php'; 
  3.  
  4. // The no revisions. 
  5. $no_revisions = false; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = layers_backup_sidebars_widgets($no_revisions); 
  9.  

Defined (1)

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

/core/widgets/init.php  
  1. function layers_backup_sidebars_widgets( $no_revisions = FALSE ) { 
  2.  
  3. global $sidebars_widgets; 
  4.  
  5. // Get a list of the migrator 
  6. $get_layers_pages = layers_get_builder_pages( 500 ); 
  7.  
  8. // Loop through the builder pages spooling up the widget data each time 
  9. $revisions = array(); 
  10. foreach( $get_layers_pages as $page ) { 
  11.  
  12. $revisions[] = layers_backup_page_sidebars_widgets( $page ); 
  13.