Elementor\Frontend::add_enqueue_font PHP Метод

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

public add_enqueue_font ( $font )
    public function add_enqueue_font($font)
    {
        switch (Fonts::get_font_type($font)) {
            case Fonts::GOOGLE:
                if (!in_array($font, $this->_enqueue_google_fonts)) {
                    $this->_enqueue_google_fonts[] = $font;
                }
                break;
            case Fonts::EARLYACCESS:
                if (!in_array($font, $this->_enqueue_google_early_access_fonts)) {
                    $this->_enqueue_google_early_access_fonts[] = $font;
                }
                break;
        }
    }