Function Reference: geodir_buddypress_screen_listings
Summary
Add listing tabs to buddypress profile page.
Package
GeoDirectory_BuddyPress_Integration
Change Log
Since: 1.0.0
Filters
‘bp_core_template_plugin’ [Line: 743]
Source File
geodir_buddypress_screen_listings() is located in geodir_buddypress/includes/gdbuddypress_functions.php [Line: 734]
Source Code
function geodir_buddypress_screen_listings() { $gd_post_types = geodir_get_posttypes( 'array' ); $post_type = geodir_buddypress_action_post_type(); $listing_post_types = get_option( 'geodir_buddypress_tab_listing' ); if ( !empty( $gd_post_types ) && !empty( $post_type ) && !empty( $listing_post_types ) && array_key_exists( $post_type, $gd_post_types ) && in_array( $post_type, $listing_post_types ) ) { add_action( 'bp_template_title', 'geodir_buddypress_listings_title' ); add_action( 'bp_template_content', 'geodir_buddypress_listings_content' ); $template = apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ); bp_core_load_template( apply_filters( 'geodir_buddypress_bp_core_template_plugin', $template ) ); } }