sequra_get_shopper_created_at

Hook Filter

Allow changing registration date of the shopper.

Description

This filter allows set the registration date of the shopper.

ParameterTypeDescription
$datestringThe shopper registration date
$orderWC_OrderThe order or null

Changelog

VersionDescription
3.0.0Introduced

Usage Example

add_filter('sequra_get_shopper_created_at', function($date, $order){
  $date = '2000-01-01'; // Modify the default value
  return $date;
}, 10, 2);