sequra_get_shopper_title

Hook Filter

Allow changing title of the shopper.

Description

This filter allows set the title of the shopper (e.g., mr, mrs).

ParameterTypeDescription
$titlestringThe shopper title
$orderWC_OrderThe order or null

Changelog

VersionDescription
3.0.0Introduced

Usage Example

add_filter('sequra_get_shopper_title', function($title, $order){
  $title = 'mr'; // Modify the default value
  return $title;
}, 10, 2);