apply_filters( 'ld-alert-icon', string $alert_class, string $type, string $icon )
Filters custom alert icon CSS class.
Description #
Parameters #
- $alert_class
-
(string) List of alert Icon CSS classes.
- $type
-
(string) Alert message type.
- $icon
-
(string) List of alert icon CSS classes.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php /** * Example usage for ld-alert-icon filter. */ add_filter( 'ld-alert-icon', function( $alert_class, $type, $icon ) { // May add any custom logic using $alert_class, $type, $icon. // Always return $alert_class. return $alert_class; }, 10, 3 );
Changelog #
Version | Description |
---|---|
3.0.0 | Introduced. |