Home / Widgets / Filter the decision to send a user confirmation | Quick Event Manager
Duplicate Snippet

Embed Snippet on Your Site

Filter the decision to send a user confirmation | Quick Event Manager

add_filter('qem_registration_always_confirm',,,1);

This filter returns a Boolean to decide if a confirm is to be sent or not.

(Note this code snippet applies for "Quick Event Manager Plugin" available here: https://fullworksplugins.com/products/quick-event-manager/ )

Code Preview
php
<?php
add_filter( /**
 *
 * Filter the decision to send a confirmation or not
 *
 * @param $bool
 *
 * @return bool overrides any logic if set to true, if set to false then standard rules apply
 */
	'qem_registration_always_confirm',
	function ( $bool ) {
    // your logic to set $bool to true or false
		return $bool;
	},
	10,
	1
);

Comments

Add a Comment