Browse: Home / Hooks /

ld-alert-button

apply_filters( 'ld-alert-button',  array $button )

Filters alert button data.


Description #


Parameters #

$button

(array) An array of alert button data.


Source #

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


Examples #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 <?php
/**
 * Example usage for ld-alert-button filter.
 */
add_filter(
	'ld-alert-button',
	function( $button ) {
		// May add any custom logic using $button.

		// Always return $button.
		return $button;
	}
);
 

Changelog #

Changelog
Version Description
3.1.4 Introduced.