src/Modules/Notification.php
static function dismiss() {
		check_ajax_referer( (string) __CLASS__, 'nonce' );

		$id      = isset( $_POST['id'] ) ? sanitize_text_field( $_POST['id'] ) : '';
		$confirm = isset( $_POST['confirm'] ) ? sanitize_text_field( $_POST['confirm'] ) : 'no';

		if ( empty( $id ) ) {
			wp_send_json( [] );
		}
		self::set_last_active_notification_timestamp();
		update_option( $id, $confirm );
		do_action( $id . '_process_confirm', $confirm );
		wp_send_json( [] );
	}
static function dismiss() {
		check_ajax_referer( (string) __CLASS__, 'nonce' );

		$id      = isset( $_POST['id'] ) ? sanitize_text_field( $_POST['id'] ) : '';
		$confirm = isset( $_POST['confirm'] ) ? sanitize_text_field( $_POST['confirm'] ) : 'no';

		if ( empty( $id ) ) {
			wp_send_json( [] );
		}
		self::set_last_active_notification_timestamp();
		update_option( $id, $confirm );
		do_action( $id . '_process_confirm', $confirm );
		wp_send_json( [] );
	}
static function dismiss ( ) { check_ajax_referer ( ( string ) __CLASS__ , 'nonce' ) ; $ id = isset ( $ _POST [ 'id' ] ) ? sanitize_text_field ( $ _POST [ 'id' ] ) : '' ; $ confirm = isset ( $ _POST [ 'confirm' ] ) ? sanitize_text_field ( $ _POST [ 'confirm' ] ) : 'no' ; if ( empty ( $ id ) ) { wp_send_json ( [ ] ) ; } self :: set_last_active_notification_timestamp ( ) ; update_option ( $ id , $ confirm ) ; do_action ( $ id . '_process_confirm' , $ confirm ) ; wp_send_json ( [ ] ) ; }
Dismiss the notification.
Dismiss the notification .