test
// Add Shortcode function intro_qb( $atts , $content = null ) { $COOKIE_SET = [ 'expires' => '10' ,'path' => '/' // ,'domain' => 'DOMAIN' ,'secure' => 'true' ,'httponly' => 'true' // ,'samesite' => 'Strict' ]; $COOKIE_NAME = "MYCOOKIE"; $COOKIE_VALUE = "STACKOVERFLOW"; if(isset($_COOKIE[$COOKIE_NAME])){ exit; } else{ setcookie($COOKIE_NAME, $COOKIE_VALUE, $COOKIE_SET); return; } } add_shortcode( 'introqb', 'intro_qb' );