method_get_social_platforms()

 
 
 
 

method_get_social_platforms()

Gets the array of supported social media platforms with SVG icons and labels.


Description

Returns the default set of social media platforms available in Method’s Social Nav block and options page. Each platform includes an SVG icon (using fill="currentColor" for theme color inheritance) and a display label.

Filterable via method_available_social_platforms.


Parameters

None.


Return

(array) Associative array of slug => array( 'icon' => svg_string, 'label' => name ).

Default platforms: bluesky, facebook, github, instagram, linkedin, pinterest, threads, tiktok, twitch, twitter, vimeo, youtube, custom.


Source

File: lib/helper-functions.php


Related


Changelog

VersionDescription
2.0.0Introduced.