How to find out (via PHP code) what extensions are activated by Metabox AIO?

Support Meta Box AIO How to find out (via PHP code) what extensions are activated by Metabox AIO?Resolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16614
    Teia Local StudioTeia Local Studio
    Participant

    Hello guys,

    I need to run some PHP code if a specific extension is activated (MB Term Meta).
    Using it as a traditional plugin, it was easy, because we can apply this:

    if (in_array('mb-term-meta/mb-term-meta.php', apply_filters('active_plugins', get_option('active_plugins')))) {
        do code here...
    }

    However, inspecting the get_option('active_plugins') I can find only Metabox AIO — however MB Term Meta is activated through it. Is there a way to perform this check?

    if (mb-term-meta *is activated* via metabox-aio) {
        do code here...
    }

    Thank you!
    G.

    #16624
    Anh TranAnh Tran
    Keymaster

    Hi,

    The better way to check is via function_exists or class_exists. For MB Term Meta, this check will work:

    if ( function_exists( 'mb_term_meta_load' ) ) {
    }
    #16638
    Teia Local StudioTeia Local Studio
    Participant

    Super!
    So easy...
    =)

    Lock, please!
    Thank you so much as always!
    G.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.