Skip to content

Commit

Permalink
Adds error message if Woothemes Sensei is not active
Browse files Browse the repository at this point in the history
  • Loading branch information
christophherr committed Mar 4, 2016
1 parent bde3f32 commit 899dab4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions genesis-connect-for-woothemes-sensei.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,21 @@ function gcfws_admin_notice_message() {
}
}

/**
* Error message if you're not using Woothemes Sensei.
*
* @since 1.1
*/
function gcfws_admin_notice_message_sensei() {
$error = sprintf( _e( 'Sorry, you can\'t use the Genesis Connect for Woothemes Sensei Plugin unless the <a href="%s">Sensei Plugin</a> is active. The plugin has been deactivated.', 'gcfws' ), 'http://senseilms.com' );

echo '<div class="error"><p>' . $error . '</p></div>';

if ( isset( $_GET['activate'] ) ) {
unset( $_GET['activate'] );
}
}

/**
* Load plugin textdomain.
*
Expand Down

0 comments on commit 899dab4

Please sign in to comment.