method_get_options_page_social_options()
method_get_options_page_social_options()
Formats social platforms for CMB2 radio_inline field options.
Description
Iterates over method_get_social_platforms() and formats each platform as an HTML string combining the SVG icon and label, suitable for CMB2’s radio_inline field type used on the Method Settings page.
Parameters
None.
Return
(array) Associative array of slug => html_label for CMB2.
Source
File: lib/helper-functions.php
Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |