learndash_alert_message

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 #

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


Examples #

 <?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
);