learndash-alert-content-after

do_action( 'learndash-alert-content-after',  string $class,  string $icon,  string $message,  string $type )

Fires after an alert button


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 #

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


Examples #

 <?php
/**
 * Example usage for learndash-alert-content-after action.
 */
add_action(
	'learndash-alert-content-after',
	function( $class, $icon, $message, $type ) {
		// May add any custom logic using $class, $icon, $message, $type

		echo '<div>Custom content or markup</div>';
	},
	10,
	4
);
 

Changelog #

Changelog
Version Description
3.0.0 Introduced.