Documentation

Didn't find anything? Ask your questions in the forum.
Documentation Filters helpful_samesite_options

helpful_samesite_options

Help: If you do not know how to execute or save your own PHP code, you can find help here: How to execute PHP code on your WordPress website

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:

<?php // functions.php

add_filter( 'helpful_samesite_options', function( $options ) {

	$options[] = 'Lax+POST';

	return $options;
}); 

Was this post helpful?