LLMS_Elementor_Migrate::add_template_to_post( $post_id )
Contents
Source Source
File: includes/class-llms-elementor-migrate.php
public function add_template_to_post( $post_id ) {
$content = get_post_meta( $post_id, '_elementor_data', true );
if ( ! $content ) {
return;
}
$decoded_content = json_decode( $content, true );
if ( ! is_array( $decoded_content ) ) {
return;
}
$decoded_content = array_merge( $decoded_content, $this->get_elementor_data_template() );
$this->update_elementor_data( $post_id, $decoded_content );
$this->update_migration_status( $post_id );
}
Expand full source code Collapse full source code View on GitHub