Overcoming plugin load order?
-
I’m trying to implement WLS support in another plugin, but there is an issue – WLS is loaded after my plugin.
So, for example to add a category I have to do this:
add_action( 'plugins_loaded', array( &$this, 'register_logging' )); ... function register_logging() { if($this->wls_logging_is_available()) wls_register( 'Posts Importer', 'Posts importer logs'); }
So now my category works but I can’t log anything because wls_log() is not defined when I call it in my plugin.
So how would I call wls_log() and ensure that it is actually loaded?
https://www.ads-software.com/plugins/wordpress-logging-service/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Overcoming plugin load order?’ is closed to new replies.