Function Reference: geodir_buddypress_screen_reviews
Summary
Add review tabs to buddypress profile page.
Package
GeoDirectory_BuddyPress_Integration
Change Log
Since: 1.0.0
Filters
‘bp_core_template_plugin’ [Line: 764]
Source File
geodir_buddypress_screen_reviews() is located in geodir_buddypress/includes/gdbuddypress_functions.php [Line: 755]
Source Code
function geodir_buddypress_screen_reviews() { $gd_post_types = geodir_get_posttypes( 'array' ); $post_type = geodir_buddypress_action_post_type(); $review_post_types = get_option( 'geodir_buddypress_tab_review' ); if ( !empty( $gd_post_types ) && !empty( $post_type ) && !empty( $review_post_types ) && array_key_exists( $post_type, $gd_post_types ) && in_array( $post_type, $review_post_types ) ) { add_action( 'bp_template_title', 'geodir_buddypress_reviews_title' ); add_action( 'bp_template_content', 'geodir_buddypress_reviews_content' ); $template = apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ); bp_core_load_template( apply_filters( 'geodir_buddypress_bp_core_template_reviews_plugin', $template ) ); } }