Skip to content

Commit

Permalink
add filter so the dashboard widget can be disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
scotrumery committed Feb 1, 2020
1 parent 84f4dbd commit d084126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wpMandrill.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ static function addDashboardWidgets() {
if (!current_user_can('manage_options')) return;

self::getConnected();
if ( !self::isConnected() ) return;
if ( !self::isConnected() || !apply_filters( 'wpmandrill_enable_widgets', true ) ) return;

$widget_id = 'mandrill_widget';

Expand Down

0 comments on commit d084126

Please sign in to comment.