apply_filters( 'ld-alert-button', array $button )
Filters alert button data.
Description #
Parameters #
- $button
-
(array) An array of alert button data.
Source #
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 #
| Version | Description |
|---|---|
| 3.1.4 | Introduced. |