This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Advanced_Search_Core::get_post_type_label( string $post_type )

Get the post type label.


Description

This function is used to get a pretty name for cached post types. Since the post type is not yet register at this stage and we only store post type names, we need this function to generate a label based on the post type name.


Parameters

$post_type

(Required) Post type.


Source

File: includes/modules/header_footer_grid/components/advanced_search_core.php