Elementor\Editor::is_edit_mode PHP Method

is_edit_mode() public method

public is_edit_mode ( )
    public function is_edit_mode()
    {
        if (null !== $this->_is_edit_mode) {
            return $this->_is_edit_mode;
        }
        if (!User::is_current_user_can_edit()) {
            return false;
        }
        if (isset($_GET['elementor'])) {
            return true;
        }
        // Ajax request as Editor mode
        $actions = ['elementor_render_widget', 'elementor_get_templates', 'elementor_save_template', 'elementor_get_template', 'elementor_delete_template', 'elementor_export_template', 'elementor_import_template'];
        if (isset($_REQUEST['action']) && in_array($_REQUEST['action'], $actions)) {
            return true;
        }
        return false;
    }