Last active
October 3, 2016 13:57
-
-
Save greatislander/403f63ae466a166255c65d9e4e3edd20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Check for the Pressbooks plugin. | |
if ( ! @include_once( WP_PLUGIN_DIR . '/pressbooks/compatibility.php' ) ) { | |
add_action( 'admin_notices', function () { | |
echo '<div id="message" class="error fade"><p>' . __( 'Cannot find Pressbooks install.', 'pressbooks' ) . '</p></div>'; | |
} ); | |
return; | |
} elseif ( ! pb_meets_minimum_requirements() ) { | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment