Skip to content

boolean_smtp_dashboard_cards

Filters the cards other plugins add to the admin overview page.

filter Tier B Since 1.0.0

Each card is rendered with its title and description and links to its URL. Return the array with your cards appended.

Signature

add_filter( 'boolean_smtp_dashboard_cards', $callback, 10, 1 );

Parameters

ParameterTypeDescription
$cardslist<array{id: string, title: string, url: string, description?: string}>Overview cards; empty by default.

Returns list<array{id: string, title: string, url: string, description?: string}> — The filtered cards.

Fires in

Example

boolean_smtp_dashboard_cards.php
add_filter( 'boolean_smtp_dashboard_cards', function ( array $cards ) {
return $cards;
}, 10, 1 );

Next steps