wcv_ratings_redirect

Description

apply_filters( 'wcv_ratings_redirect', get_permalink( wc_get_page_id( 'myaccount' ) )  . $orders_endpoint )

Parameters (1) (string)

Usage Examples

To run the filter, copy this sample

$str = apply_filters( 'wcv_ratings_redirect', $param );
  if ( ! empty( $str ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

// the filter wcv_ratings_redirect callback
function filter_wcv_ratings_redirect( $param ) {
  // do your thing here :-) ... 

  return $str;
}
add_filter( 'wcv_ratings_redirect', 'filter_wcv_ratings_redirect', 10, 1 );

To remove the filter, copy this sample

 //remove the filter
remove_filter( 'wcv_ratings_redirect', 'filter_wcv_ratings_redirect', 10, 1 );

Defined

This filter is defined in the following source file(s)

  • wcvendors-pro/includes/class-wcvendors-pro-ratings-controller.php line 199
    wp_safe_redirect( apply_filters( 'wcv_ratings_redirect', get_permalink( wc_get_page_id( 'myaccount' ) )  . $orders_endpoint ) );

filters

Updated on January 9, 2017

Was this article helpful?