Metabox as Library

Support General Metabox as Library

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2938
    weseoweseo
    Participant

    Hello, i use Metabox as lirary in my plugin.
    Can you add please a "class_exists" if Statement to all extensions?

    Example:

     if (!class_exists('RWMB_Loader'))
          include_once('libraries/meta-box/meta-box.php');
    
                if (!class_exists('RWMB_Group'))
                    include_once('libraries/meta-box-group/meta-box-group.php');
    
                if (!class_exists('MB_Columns'))
                    include_once('libraries/meta-box-columns/meta-box-columns.php');
    
                if (!class_exists('MB_Conditional_Logic'))
                    include_once('libraries/meta-box-conditional-logic/meta-box-conditional-logic.php');
    
                if (!class_exists('MB_Tabs'))
                    include_once('meta-box-tabs/meta-box-tabs.php');
    
                if(!class_exists('MB_Settings_Page') && !class_exists('MB_Settings_Page_Meta_Box') && !function_exists('mb_settings_page_load'))
                    include_once('mb-settings-page/mb-settings-page.php');

    Thank you

    #2952
    Anh TranAnh Tran
    Keymaster

    I will do that in a couple of days. Thanks!

    #2962
    weseoweseo
    Participant

    Thank you very much

    #3250
    Anh TranAnh Tran
    Keymaster

    Hi @weseo, sorry for the delay. Now it's safe to include all extensions into themes/plugins. Please follow this instruction:

    1. Copy extension folder to your theme
    2. Open "functions.php" and add the "include" line to the extension main file

    That's all. Enjoy 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Metabox as Library’ is closed to new replies.