Elementor\Post_CSS_File::__construct PHP Метод

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

public __construct ( $post_id )
    public function __construct($post_id)
    {
        $this->post_id = $post_id;
        // Check if it's an Elementor post
        $db = Plugin::instance()->db;
        $data = $db->get_plain_editor($post_id);
        $edit_mode = $db->get_edit_mode($post_id);
        $this->is_build_with_elementor = !empty($data) && 'builder' === $edit_mode;
        if (!$this->is_build_with_elementor) {
            return;
        }
        $this->set_path_and_url();
        $this->init_stylesheet();
    }