Browse: Home / Hooks /

ld-alert-type

apply_filters( 'ld-alert-type',  string $type )

Filters custom alert type.


Description #


Parameters #

$type

(string) Alert message type.


Source #

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


Examples #

Note: Extended code example below not guaranteed, you may need to consult with a developer

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

		// Always return $type.
		return $type;
	}
);
 

Changelog #

Changelog
Version Description
3.1.4 Introduced.