benecaster_get_share_platforms()
benecaster_get_share_platforms(): array
Every platform [benecaster_episode_share] can share to. This is also the shortcode’s default platforms value, in this order — the default and the supported set are the same list.
Return Value
Type:
array
slug => the label its button shows, in display order: twitter_x, facebook, linkedin, copy_link.
Example
$slugs = array_keys( benecaster_get_share_platforms() );
// [ 'twitter_x', 'facebook', 'linkedin', 'copy_link' ] — also the shortcode's default
Notes
Read-only, with no filter — and here that is not a matter of taste. Each platform is backed by built-in code that builds its share link, so a platform added to the list without that code would be offered by a picker and then render nothing. To change the share text, use the benecaster_episode_share_text filter.
Need this built rather than just documented? See our services →