Hi,
I am trying to use the CMB2 plugin in my theme. I check my theme by the Envato theme check and it get some warning:
- Warning: More than one text-domain is being used in this theme. This means the theme will not be compatible with WordPress.org language packs.
The domains found are fen, cmb2 - WARNING: Found a translation function that is missing a text-domain. Function __ , with the arguments 'Toggle panel: %s’
- WARNING: Found a translation function that is missing a text-domain. Function __ , with the arguments 'Scope under which the request is made; determines fields present in response.'
- REQUIRED: cmb2/includes/CMB2_Options_Hookup.php . Themes should use add_theme_page() for adding admin pages.
Line 98: $page_hook = add_menu_page(
- REQUIRED: cmb2/includes/CMB2_Options_Hookup.php . Themes should use add_theme_page() for adding admin pages.
Line 89: $page_hook = add_submenu_page(
- INFO: cmb2/init.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 160: require( cmb2_dir( ‘bootstrap.php’ ) );
- INFO: cmb2/includes/helper-functions.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 44: require( cmb2_dir( ‘$path/{$class_name}.php’ ) );
I have some questions:
1- should I change the cmb2 plugin text-domain to my theme text-domain?
2- should I change the cmb2 code to fix other INFO error?
3- do you have any advices?