Unnecessary CMB2 fields
-
Hi abuhayat,
Thanks for the work on this great plugin. Just what I was looking for.
I can see your are using CMB2 for your meta fields.
There are some fields generated that I don’t think are needed in cmb2/example-functions.php. These are just examples used to show the functionality of CMB2.
Line 166: add_action( ‘cmb2_admin_init’, ‘yourprefix_register_repeatable_group_field_metabox’ );
Line 232: add_action( ‘cmb2_admin_init’, ‘yourprefix_register_user_profile_metabox’ );
Line 304: add_action( ‘cmb2_admin_init’, ‘yourprefix_register_theme_options_metabox’ );
Will these be removed in future versions?
If anyone else is reading this, you should be able to just comment these lines out in the meantime. They don’t affect anything but could cause confusion.
Thanks,
Zak
The topic ‘Unnecessary CMB2 fields’ is closed to new replies.