do_action( 'learndash-alert-after', string $class, string $icon, string $message, string $type )
Fires after an alert.
Description #
Parameters #
- $class
-
(string) List of alert CSS classes.
- $icon
-
(string) List of alert icon CSS classes.
- $message
-
(string) Alert message text.
- $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 learndash-alert-after action.
*/
add_action(
'learndash-alert-after',
function( $class, $icon, $message, $type ) {
// May add any custom logic using $class, $icon, $message, $type
},
10,
4
);
Changelog #
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |