Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Filters
  5. Filter :wp_travel_review_count

Filter :wp_travel_review_count

Total count of reviews.

Source

File: /inc/template-functions.php
Used by: /inc/template-functions.php

Parameters
$count, $post

Example:

function prefix_wp_travel_review_count( $count, $post ) {
    if ( ‘100’ === $post->ID ) {
    $count = 5;
    }
    return $count;
}
add_filter( 'wp_travel_review_count', 'prefix_wp_travel_review_count', 10, 2 );
Was this article helpful to you? Yes No

How can we help?