2 Comments


  1. 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.

    Reply
  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 ?

    Reply

Leave a Reply