shopp_fedex_error

filters the error message generated on rate lookup failure in the FedExRates add-on module.

add_filter( 'shopp_fedex_error', [callback] )

@param string $error the error message generated on rate lookup failure in the FedExRates add-on module.

Description

filters the error message generated on rate lookup failure in the FedExRates add-on module.

This error is translateable, and defaults to “There was an error obtaining FedEx Rates.”

Example

// register filter callback
add_filter('shopp_fedex_error', 'shopp_fedex_error_fltr');

// create filter function
function shopp_fedex_error_fltr( $error ) {
    $error = "There was no response from FedEx, please resubmit the cart and try again.";
    return $error;
}

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar