This filter can be used to extend the options available in the Samesite Option for cookies. Helpful supports the options by default: None, Lax and Strict

The filter expects an array and also returns an array. You can extend the options as follows:

 * Expands the available options for Samesite cookies.
 * @param array $options
 * @return array
add_filter( 'helpful_samesite_options', function( array $options ) {
	$options[] = 'Lax+POST';
	return $options;
Was this helpful?