apply_filters( 'learndash_alert_message', string $message, string $type, string $icon )
Filters LearnDash custom alert message text.
Description #
Parameters #
- $message
-
(string) Alert message text.
- $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 learndash_alert_message filter.
*/
add_filter(
'learndash_alert_message',
function( $message, $type, $icon ) {
// May add any custom logic using $message, $type, $icon.
// Always return $message.
return $message;
},
10,
3
);
Changelog #
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |