twentytwenty_svg_icon_color

過濾鉤子
apply_filters( 'twentytwenty_svg_icon_color', $color, $icon, $group )
引數
  • (string) $color The icon color.
    Required:
  • (string) $icon The icon name.
    Required:
  • (string) $group The icon group.
    Required:
定義位置
  • wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php , line 58
相關勾子
twentytwenty_svg_icons_socialtwenty_twenty_one_svg_icons_socialtwentytwenty_svg_icons_grouptwenty_twenty_one_svg_icons_grouptwentytwenty_site_logo
相關方法
get_site_icon_url
引入
Twenty Twenty 1.5
棄用
-

twentytwenty_svg_icon_color:這是一個過濾器鉤子,允許您更改主題圖示中使用的 SVG 的顏色。

過濾一個SVG圖示的顏色。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$color = apply_filters( 'twentytwenty_svg_icon_color', $color, $icon, $group );
$color = apply_filters( 'twentytwenty_svg_icon_color', $color, $icon, $group );
$color = apply_filters( 'twentytwenty_svg_icon_color', $color, $icon, $group );

常見問題

FAQs
檢視更多 >