Home / Widgets / Filter to send admin confirms | Quick Event Manager
Duplicate Snippet

Embed Snippet on Your Site

Filter to send admin confirms | Quick Event Manager

add_filter('qem_registration_always_confirm_admin',,,1);

This filter returns a Boolean to decide if an admin 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 an admin 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_admin',
	function ( $bool ) {
    // your logic to set $bool to true or false
		return $bool;
	},
	10,
	1
);

Comments

Add a Comment