Skip to content

Commit

Permalink
Merge pull request #59 from Miller-Media/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
MillerMedia authored Mar 6, 2020
2 parents 53c0a7a + 61dbcfd commit 0fb810c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/wpMandrill.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ static function adminMenu() {
array(__CLASS__,'showOptionsPage')
);

if( self::isConfigured() ) {
if( self::isConfigured() && apply_filters( 'wpmandrill_enable_reports', true ) ) {
if (current_user_can('manage_options')) self::$report = add_dashboard_page(
__('Mandrill Reports', 'wpmandrill'),
__('Mandrill Reports', 'wpmandrill'),
Expand Down Expand Up @@ -1013,7 +1013,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 0fb810c

Please sign in to comment.