ld-alert-class

apply_filters( 'ld-alert-class',  string $alert_class,  string $type,  string $icon )

Filters custom alert message CSS class.


Description #


Parameters #

$alert_class

(string) List of alert CSS classes.

$type

(string) Alert message type.

$icon

(string) List of alert icon CSS classes.


Source #

File: themes/ld30/templates/modules/alert.php


Examples #

 <?php
/**
 * Example usage for ld-alert-class filter.
 */
add_filter(
	'ld-alert-class',
	function( $alert_class, $type, $icon ) {
		// May add any custom logic using $alert_class, $type, $icon.

		// Always return $alert_class.
		return $alert_class;
	},
	10,
	3
);