Hooks: Custom Post Types

← Back to all hooks
Hook Return Usage
wpex_{post_type}_single_thumbnail_args array

Returns correct arguments for the single post thumbnail for any custom post type using the theme’s cpt-single-media.php template file

wpex_{post_type}_single_blocks array

Returns correct layout for the single post type display.

wpex_{post_type}_single_thumbnail_args array

Returns arguments for the entry post thumbnail for any custom post type using the theme’s cpt-entry-media.php template file

wpex_{post_type}_entry_overlay_style string

Returns the overlay style for the custom post type entry thumbnail.

wpex_{post_type}_entry_excerpt_length string

Returns the excerpt length for the post type entry. Default is 40.