Skip to content

Commit

Permalink
Use config value instead of hard-coded post types
Browse files Browse the repository at this point in the history
Resolves BoldGrid#35
  • Loading branch information
jessecowens committed Oct 19, 2020
1 parent e627b61 commit f7f6b18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-boldgrid-seo-butterbean.php
Expand Up @@ -32,7 +32,7 @@ public function get_html_template( $located, $slug ) {
}

public function register( $butterbean, $post_type ) {
if ( 'page' !== $post_type && 'post' !== $post_type )
if ( array_search($post_type, $this->configs['meta-box']['post_types'] ) === false )
return;
/* === Register Managers === */
$butterbean->register_manager( 'boldgrid_seo', $this->configs['meta-box']['manager'] );
Expand Down

0 comments on commit f7f6b18

Please sign in to comment.