• Resolved zakalwe

    (@zakalwe)


    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

    https://ww.wp.xz.cn/plugins/html5-audio-player/

Viewing 1 replies (of 1 total)
  • Plugin Author Abu Hayat

    (@abuhayat)

    Thank you Zakalwe
    these lines will be removed in the next version.

Viewing 1 replies (of 1 total)

The topic ‘Unnecessary CMB2 fields’ is closed to new replies.