layers_builder_export_init

The Layers layers builder export init function.

Description

layers_builder_export_init(); 

Usage

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

Defined (1)

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

/core/helpers/migrator.php  
  1. function layers_builder_export_init() { 
  2. global $pagenow, $post; 
  3.  
  4. // Make sure we're on the post edit screen 
  5. if( 'post.php' != $pagenow ) return; 
  6.  
  7. // Make sure we're editing a post 
  8. if( 'page' != get_post_type( $post->ID ) || 'builder.php' != basename( get_page_template() ) ) return; 
  9.  
  10. $layers_migrator = new Layers_Widget_Migrator(); 
  11. $layers_migrator->init(); 
  12.