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.


Top ↑

Return Return

(void)


Top ↑

Changelog Changelog

Changelog
VersionDescription
0.6.0Introduced.

Premium WordPress Apps