How to include plugin in theme?

Support MB Include Exclude How to include plugin in theme?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #97
    mediamotionmediamotion
    Participant

    Hi!

    Have theme with included metabox plugin, how is possible to include this plugin?

    #98
    mediamotionmediamotion
    Participant

    Have just included in meta-box.php (ver 4.2.2.)
    require_once RWMB_CLASSES_DIR . 'meta-box-include-exclude.php';

    Is there option about jquery open/close some metabox like in ACF ?
    Now I must check taxonomy, save post and metabox, and excluded metabox will not be visible..

    #99
    Anh TranAnh Tran
    Keymaster

    Hi,

    You did right. To include the plugin inside themes, just include the main plugin PHP file, that's all.

    This plugin doesn't have the ability to show/hide meta box with Javascript. It uses different approach:

    - With Javascript, meta box is still there but hidden. Data is still be processed, which might be redundant
    - In this plugin, include means meta box is visible and data is processed. Exclude means no meta box at all, so no data is processed.

    Using Javascript doesn't really mean "include/exclude" :). It might be something like toggle meta box 🙂

    #116
    Anh TranAnh Tran
    Keymaster

    FYI, I've just released a new extension for show/hide meta boxes using Javascript. Check it here:

    https://metabox.io/plugins/meta-box-show-hide-javascript/

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘How to include plugin in theme?’ is closed to new replies.