twenty_twenty_one_social_icons_map

過濾鉤子
apply_filters( 'twenty_twenty_one_social_icons_map', self::$social_icons_map )
引數
  • (array) $social_icons_map Array of default social icons.
    Required:
定義位置
  • wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-svg-icons.php , line 214
相關勾子
twentytwenty_social_icons_maptwenty_twenty_one_svg_icons_socialtwenty_twenty_one_svg_icons_grouptwenty_twenty_one_starter_contenttwentyseventeen_social_links_icons
相關方法
render_block_core_social_link
引入
Twenty Twenty-One 1.0
棄用
-

twenty_twenty_one_social_icons_map:此函式返回可在主題中使用的社交圖示陣列。

過濾Twenty Twenty-Ones的社交圖示的域名對映陣列。

預設情況下,每個圖示ID都與一個.com TLD相匹配。為了覆蓋該行為,指定它覆蓋的所有域(如果適用,還包括.com TLD)。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$map = apply_filters( 'twenty_twenty_one_social_icons_map', self::$social_icons_map );
$map = apply_filters( 'twenty_twenty_one_social_icons_map', self::$social_icons_map );
$map = apply_filters( 'twenty_twenty_one_social_icons_map', self::$social_icons_map );

常見問題

FAQs
檢視更多 >