Use term and content helpers
Content helpers
| Helper | Purpose |
|---|---|
pom_get_excerpt( $limit = 50, $post_id = 0 ) |
Return a POM-normalized excerpt |
pom_strip_unsafe_excerpt_shortcodes( string $content ) |
Remove shortcodes that should not execute while deriving an excerpt |
pom_build_indexed_excerpt_value( $excerpt, $content, $fallback_limit = 55 ) |
Produce the value used by indexed/search contexts |
pom_get_public_post_types( $exclude_attachments = true ) |
Return public types |
pom_get_custom_post_types() |
Return configured POM custom types |
pom_get_available_post_types( $add_default_option = false ) |
Return types suitable for selectors |
pom_get_reusable_blocks( $empty_option = false ) |
Return reusable blocks available to selectors |
Pass an explicit post ID outside The Loop. A helper returning content does not authorize the current user to see a private post; enforce the relevant access rule first.
Term helpers
| Helper | Purpose |
|---|---|
pom_sort_post_terms_hierarchically( array $terms ) |
Arrange terms according to their hierarchy |
pom_get_post_terms( ... ) |
Render the configured term list, thumbnails/colors/links and wrapper choices |
pom_get_cpt_array( $only_key_label = false ) |
Return configured post-type data |
pom_get_ctax_array( $only_key_label = false ) |
Return configured taxonomy data |
pom_get_post_terms() has a broad presentation signature because it serves theme templates. For a data-only integration, prefer WordPress term APIs and use POM helpers only for POM's presentation conventions.
Output safety
Determine whether the helper returns plain text, data or trusted theme markup before output. Escape data at the final context; do not double-escape renderer markup or treat an untrusted custom-field value as safe HTML.