Function Reference: geodir_is_reviews_show
Summary
Check whether to display ratings or not.
Package
GeoDirectory
Parameters
- $pageview
- (string) (required) The view template. Ex: listview, gridview etc.
- Default: None
Return Values
- (mixed|void)
Change Log
Since: 1.0.0
Filters
‘geodir_is_reviews_show’ [Line: 987]
Source File
geodir_is_reviews_show() is located in geodirectory-functions/comments_functions.php [Line: 968]
Source Code
function geodir_is_reviews_show($pageview = '') { $active_tabs = get_option('geodir_detail_page_tabs_excluded'); $is_display = true; if (!empty($active_tabs) && in_array('reviews', $active_tabs)) $is_display = false; /** * Filter to change display value. * * You can use this filter to change the is_display value. * * @since 1.0.0 * @package GeoDirectory * @param bool $is_display Display ratings when set to true. * @param string $pageview The view template. Ex: listview, gridview etc. */ return apply_filters('geodir_is_reviews_show', $is_display, $pageview); }