Function Reference: geodir_buddypress_post_type_archive

Summary

Check post type has archive or not.

Package

GeoDirectory_BuddyPress_Integration

Parameters

$post_type
(string) (required) post_type of the listing.

Default: None

Return Values

(null|string)

    Change Log

    Since: 1.0.0

    Source File

    geodir_buddypress_post_type_archive() is located in geodir_buddypress/includes/gdbuddypress_functions.php [Line: 890]

    Source Code

    function geodir_buddypress_post_type_archive( $post_type ) {
    	$gd_post_types = geodir_get_posttypes( 'array' );
    	
    	$has_archive = $post_type != '' && isset( $gd_post_types[$post_type]['has_archive'] ) ?  $gd_post_types[$post_type]['has_archive'] : NULL;
    	
    	return $has_archive;
    }