Inicio - Documentación - POM Theme - 11 Developers - Use sidebar and social helpers

Use sidebar and social helpers

Sidebars

pom_get_custom_sidebars(): array returns the custom sidebars configured through POM Theme. Use it to populate an integration selector or validate a saved POM sidebar identifier.

Before rendering, also use WordPress's is_active_sidebar() and dynamic_sidebar() contracts. A configured sidebar can legitimately contain no active widgets.

Social networks

Helper Purpose
pom_get_social_networks() Return configured public social-network data
pom_get_enabled_social_network_positions() Return theme positions whose social output is enabled
pom_get_theme_option_icon( $path ) Resolve a theme-option icon asset for supported administration output

Do not infer authentication or ownership from a configured public profile URL. Treat URLs as output data and escape them with esc_url(). Social icons need accessible link names even when the visual label is hidden.

Optional-theme fallback

When POM Theme is not guaranteed:

$networks = function_exists( 'pom_get_social_networks' )
    ? pom_get_social_networks()
    : array();

Do not copy the theme's stored option structure as a fallback; provide your integration's own neutral behavior.