layers_builder_export_ajax_init

The Layers layers builder export ajax init function.

Description

layers_builder_export_ajax_init(); 

Usage

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

Defined (1)

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

/core/helpers/migrator.php  
  1. function layers_builder_export_ajax_init() { 
  2. $layers_migrator = new Layers_Widget_Migrator(); 
  3.  
  4. add_action( 'wp_ajax_layers_import_widgets', array( $layers_migrator, 'do_ajax_import' ) ); 
  5. add_action( 'wp_ajax_layers_create_builder_page_from_preset', array( $layers_migrator, 'create_builder_page_from_preset' ), 50 ); 
  6. add_action( 'wp_ajax_layers_update_builder_page', array( $layers_migrator, 'update_builder_page' ) ); 
  7. add_action( 'wp_ajax_layers_duplicate_builder_page', array( $layers_migrator, 'do_ajax_duplicate' ) );