File "Operations.php"
Full Path: /home/romayxjt/public_html/wp-content/plugins/the-events-calendar/common/src/Tribe/Ajax/Operations.php
File size: 350 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* Class Tribe__Ajax__Operations
*
* Handles common AJAX operations.
*/
class Tribe__Ajax__Operations {
public function verify_or_exit( $nonce, $action, $exit_data = [] ) {
if ( ! wp_verify_nonce( $nonce, $action ) ) {
exit( $exit_data );
}
return true;
}
public function exit_data( $data = [] ) {
exit( $data );
}
}