Skip to content

mc_close_button

github-actions[bot] edited this page Jun 3, 2026 · 4 revisions

Filter event modal close button label.

Auto-generated Example

add_filter(
   'mc_close_button',
    function( string $close ) {
        // Your code here.
        return $close;
    }
);

Parameters

  • string $close HTML or text string to use as label of close button.

Returns

string

Files

apply_filters( 'mc_close_button', "<span class='dashicons dashicons-dismiss' aria-hidden='true'></span><span class='screen-reader-text'>Close</span>" )

← All Hooks

Clone this wiki locally