LLMS_Elementor_Migrate::add_template_to_post( $post_id )


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 );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.