twentytwenty_svg_icons_{$group}

過濾鉤子
apply_filters( "twentytwenty_svg_icons_{$group}", $arr )
引數
  • (array) $arr Array of icons.
    Required:
定義位置
  • wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php , line 47
相關勾子
twenty_twenty_one_svg_icons_grouptwentytwenty_svg_icon_colortwentytwenty_svg_icons_socialtwenty_twenty_one_svg_icons_socialtwentytwenty_social_icons_map
引入
Twenty Twenty 1.5
棄用
-

twentytwenty_svg_icons_{$group}:這是一個過濾器鉤子,允許您更改主題圖示中使用的 SVG。

過濾Twenty Twenty的圖示陣列。

鉤子名稱的動態部分,$group,是指圖示組的名稱,可以是”ui”或”social”。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$arr = apply_filters( "twentytwenty_svg_icons_{$group}", $arr );
$arr = apply_filters( "twentytwenty_svg_icons_{$group}", $arr );
$arr = apply_filters( "twentytwenty_svg_icons_{$group}", $arr );

常見問題

FAQs
檢視更多 >