apply_filters( 'ld-alert-type', string $type )
Filters custom alert type.
Description #
Parameters #
- $type
-
(string) Alert message type.
Source #
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 #
| Version | Description |
|---|---|
| 3.1.4 | Introduced. |