Breadcrumb_Trail::get_post_types_by_slug( int $slug )
Gets post types by slug. This is needed because the get_post_types() function doesn’t exactly match the ‘has_archive’ argument when it’s set as a string instead of a boolean.
Package
Description Description
Parameters Parameters
- $slug
(int) (Required) The post type archive slug to search for.
Return Return
(void)
Changelog Changelog
Version | Description |
---|---|
0.6.0 | Introduced. |