PUM_Utils_Alerts::ajax_handler()

Handles if alert was dismissed AJAX


Description Description


Source Source

File: classes/Utils/Alerts.php

			$alert_list = apply_filters( 'pum_alert_list', array() );
		}

		$alerts = array();

		foreach ( $alert_list as $alert ) {

			// Ignore dismissed alerts.
			if ( self::has_dismissed_alert( $alert['code'] ) ) {
				continue;
			}

			$alerts[] = wp_parse_args( $alert, array(
				'code'        => 'default',
				'priority'    => 10,
				'message'     => '',
				'type'        => 'info',
				'html'        => '',
				'dismissible' => true,
				'global'      => false,
			) );



Top ↑

User Contributed Notes User Contributed Notes

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