function ajax_check() { if (!isset($_GET['nonce']) || !wp_verify_nonce($_GET['nonce'], 'ooyala')) { $this->ajax_error(__('Invalid nonce', 'ooyala')); } }