PUM_Utils_Alerts::php_handler()

Handles if alert was dismissed by page reload instead of AJAX


Description Description


Source Source

File: classes/Utils/Alerts.php

	public static function php_handler() {
		if ( ! isset( $_REQUEST['pum_dismiss_alert'] ) ) {
			return;
		}

		if ( ! wp_verify_nonce( $_REQUEST['nonce'], 'pum_alerts_action' ) ) {
			return;
		}

		$args = wp_parse_args( $_REQUEST, array(
			'code'              => '',
			'expires'           => '',
			'pum_dismiss_alert' => '',
		));

		self::action_handler( $args['code'], $args['pum_dismiss_alert'], $args['expires'] );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.11.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.