Add Blockade to new post types or WP editors
<?php /* place in functions.php or in a custom plugin */
// Add Blockade to the custom post types "foo" and "bar"
add_filter('wp-blockade-override-post-types', 'add_my_blockade_post_types');
function add_my_blockade_post_types( $post_types ) {
$post_types[] = "foo";
$post_types[] = "bar";
return $post_types;
}
// Add Blockade to the custom editor with the ID "baz"
add_filter('wp-blockade-override-editors', 'add_my_blockade_editors');
function add_my_blockade_editors( $editors ) {
$editors[] = "baz";
return $editors;
}