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

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.