init(); // Backward compatible with Meta Box Group extension < 1.2.7 when Meta Box 1.12 switch to use storage. $old_group = false; if ( ! function_exists( 'is_plugin_active' ) ) { include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); } if ( is_plugin_active( 'meta-box-group/meta-box-group.php' ) ) { $group = get_plugin_data( WP_PLUGIN_DIR . '/meta-box-group/meta-box-group.php' ); if ( version_compare( $group['Version'], '1.2.7' ) < 0 ) { $old_group = true; } } if ( $old_group ) { require dirname( __FILE__ ) . '/inc/class-mb-term-meta-field.php'; $term_meta_field = new MB_Term_Meta_Field(); $term_meta_field->init(); } } }