class.yith-wc-anti-fraud.php

ywaf_rules

Modify the list of anti-fraud rules


Params

 array $rules List of all fraud check rules.




Return
 array


ywaf_allowed_statuses_check

Modify the list of order statuses on which perform the check


Params

 array $statuses List of allowed order status.




Return
 array


ywaf_can_skip_check_order

Check if the order check can be skipped


Params

 boolean  $value The value to set.

 WC_Order $order The order to skip.




Return
 boolean


ywaf_paypal_check

Check if the order check can be performed


Params

 boolean  $value The value to set.

 WC_Order $order The order to check.




Return
 boolean


ywaf_can_skip_check_order

Check if the order check can be skipped


Params

 boolean  $value The value to set.

 WC_Order $order The order to skip.




Return
 boolean


ywaf_after_check_status

Set the order status after check


Params

 array    $order_status The order status data.

 integer  $risk_score   The risk score.

 WC_Order $order        The order checked.




Return
 array


ywaf_can_skip_check_order

Check if the order check can be skipped


Params

 boolean  $value The value to set.

 WC_Order $order The order to skip.




Return
 boolean


ywaf_send_for_every_status

Check if the can be sent


Params

 boolean $value      The value to set.

 integer $risk_score The risk score.




Return
 boolean


ywaf_paypal_check_failed

Sets the status after the PayPal failed check


Params

 string $value The value to set.




Return
 string


ywaf_change_capability

Sets the capability that the suer should have in order to manage the plugin


Params

 string $value The value to set.




Return
 string


ywaf_paypal_status

Sets the PayPal check status icon


Params

 string $value The value to set.




Return
 string


includes/rules/class-ywaf-addresses-matching.php

ywaf_fields_to_compare

Check the fields to compare


Params

 array $value The field names.




Return
 array


includes/rules/class-ywaf-blacklist.php

ywaf_get_fraud_risk

Alters fraud check for a specifc order


Params

 boolean  $value The value to set.

 WC_Order $order The order checked.




Return
 boolean


includes/rules/class-ywaf-proxy.php

ywaf_proxy_dnsbls

Set the proxy dnsls list


Params

 array $value The value to set.




Return
 array