Using plugins_loaded (thanks to Franz Kaiser)