Search Documentation

WP Travel Developer Documentation

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

Filter :wp_travel_success_codes

WP Travel Success codes.

Source

File: /core/helpers/response_codes.php
Used by: /core/helpers/response_codes.php

Parameters
$codes

Example:

function prefix_wp_travel_success_codes( $codes ) {
    $codes[‘YOUR_CUSTOM_CODE’] =
    return $premium_addons;
}
add_filter( 'wp_travel_success_codes', 'prefix_wp_travel_success_codes' );
Was this article helpful to you? Yes No

How can we help?