Elementor\DB::get_plain_editor PHP Метод

get_plain_editor() публичный Метод

public get_plain_editor ( $post_id, $revision = self::REVISION_PUBLISH )
    public function get_plain_editor($post_id, $revision = self::REVISION_PUBLISH)
    {
        $data = $this->_get_json_meta($post_id, '_elementor_data');
        if (self::REVISION_DRAFT === $revision) {
            $draft_data = $this->_get_json_meta($post_id, '_elementor_draft_data');
            if (!empty($draft_data)) {
                $data = $draft_data;
            }
            if (empty($data)) {
                $data = $this->_get_new_editor_from_wp_editor($post_id);
            }
        }
        return $data;
    }