Skip to content

Commit

Permalink
Merge pull request #77 from bu-ist/add-custom-taxonomy
Browse files Browse the repository at this point in the history
Add custom taxonomy
  • Loading branch information
DannyCrews authored Mar 3, 2020
2 parents 8198efa + a527cd5 commit 6975435
Show file tree
Hide file tree
Showing 14 changed files with 12,418 additions and 7,514 deletions.
28 changes: 28 additions & 0 deletions bu-learning-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,34 @@ function gutenberg_notice() {
deactivate_plugins( BULB_PLUGIN_BASENAME );
}

/**
* BULB Activation Hook registration
*
* All the activation checks needed to ensure BULB is ready for use
*
* @since 0.0.6
*/
function bulb_activate() {
if ( false === get_option( 'bulb_active', false ) ) {
update_option( 'bulb_cpt_install_dialog', 1 );
}
update_option( 'bulb_active', 1 );
}
register_activation_hook( BULB_PLUGIN_FILE_PATH, 'bulb_activate' );

/**
* BULB De-activation Hook registration
*
* All the de-activation checks needed to ensure BULB is properly de-activated
*
* @since 0.0.6
*/
function bulb_deactivate() {
delete_option( 'bulb_active' );
delete_option( 'bulb_cpt_install' );
}
register_deactivation_hook( BULB_PLUGIN_FILE_PATH, 'bulb_deactivate' );

/**
* Initializes plugin on plugins_loaded.
*
Expand Down
459 changes: 458 additions & 1 deletion dist/blocks.build.js

Large diffs are not rendered by default.

890 changes: 885 additions & 5 deletions dist/blocks.editor.build.css

Large diffs are not rendered by default.

Loading

0 comments on commit 6975435

Please sign in to comment.