Your account expired support, please renew to get your support.

HomePage Forums Themes Support Triply – Tour Booking WordPress Theme Change review comments star subjects

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #11514
    Bashiachuki
    Support Expired

    Hi, how can I delete/modify subjects for “location, Amenities” etc. stars?

    #11533

    Hi you,

    Please use this code:

    function trpiply_babe_init_rating_criteria($rating_criteria_arr) {
      unset($rating_criteria_arr['location']);
      unset($rating_criteria_arr['amenities']);
      return $rating_criteria_arr;
    }
    add_filter('babe_init_rating_criteria', 'trpiply_babe_init_rating_criteria', 10, 1);
    
    copy and paste into file functions.php ( child-theme)
    
    #11535
    Bashiachuki
    Support Expired

    Hi Billy,

    I tried your code, its in functions.php but it doesn’t work. Trying to unset these below, but it still shows

    Kazbegi Tour on the Pick of the Mountain

    function trpiply_babe_init_rating_criteria($rating_criteria_arr) {
    unset($rating_criteria_arr[‘location’]);
    unset($rating_criteria_arr[‘amenities’]);
    unset($rating_criteria_arr[‘price’]);
    unset($rating_criteria_arr[‘rooms’]);
    return $rating_criteria_arr;
    }
    add_filter(‘babe_init_rating_criteria’, ‘trpiply_babe_init_rating_criteria’, 10, 1);

    #11547

    Hi,

    I have just resolved this issue, please recheck.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.