Skip to content

Instantly share code, notes, and snippets.

@1naveengiri
Created July 29, 2017 10:00
Show Gist options
  • Save 1naveengiri/675d4acbcc8aa47f42fd2ca0a923ce72 to your computer and use it in GitHub Desktop.
Save 1naveengiri/675d4acbcc8aa47f42fd2ca0a923ce72 to your computer and use it in GitHub Desktop.
add_action( 'admin_notices','bp_admin_notices' );
/**
* Add Admin Notice when BuddyPress is not activated.
*/
public function bp_live_admin_notices( ){
if( ! is_plugin_active('buddypress/bp-loader.php') ){ ?>
<div class="notice notice-warning is-dismissible">
<p>
<?php _e( 'BuddyPress Live Notification required BuddyPress to be activated', 'bp_live_notification' ); ?></p>
</div>
<?php }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment