Function Reference: geodir_buddypress_post_type_name
Summary
Get post type name to display in member profile listings Tab.
Package
GeoDirectory_BuddyPress_Integration
Parameters
- $post_type
- (string) (required) post_type of the listing.
- Default: None
Return Values
- (string|void)
Change Log
Since: 1.0.0
Source File
geodir_buddypress_post_type_name() is located in geodir_buddypress/includes/gdbuddypress_functions.php [Line: 907]
Source Code
function geodir_buddypress_post_type_name( $post_type = '' ) { $action_post_type = geodir_buddypress_action_post_type(); $post_type = $post_type != '' ? $post_type : $action_post_type; $gd_post_types = geodir_get_posttypes( 'array' ); $return = !empty( $gd_post_types ) && isset( $gd_post_types[$post_type]['labels']['name'] ) ? __( $gd_post_types[$post_type]['labels']['name'], GDBUDDYPRESS_TEXTDOMAIN ) : ''; return $return; }