How to check a page built with Elementor

When you developing a theme or plugin, sometimes its need to check whether any page is built with elementor or not.

You can different functionality based on this checked result.

Here is the solution, to check if any page is built with elementor.

if ( Elementor\Plugin::$instance->db->is_built_with_elementor( $post_id ) ) {
    // This page is built with elementor
}

Elementor introduce theme location API from 2.0, that allows theme developers to create custom locations and edit them with elementor.

You can check that from this link.