2 Comments

  1. Jeff

    That’s a great piece of code, and not terribly hard to add to a plugin. Similar options can check for the PHP version or other PHP features.

    I’ve used a similar idea to ensure that another plugin/theme that my private plugin requires is still active.

    Report

  2. Stefan

    Nice piece of code ! Its working very fine BUT I´m missing a call to load_plugin_textdomain(…)
    for translation issues of all the __(..) stuff.
    Is it a good idea to place it directly in the __constructor before the add_action(..) or is a add_filter( ‘init’, loaderFunction, 1 ) more applicable ?
    Can you give an advice or modify you sample ?

    Report

Comments are closed.

%d bloggers like this: