Activate plugin using external file
-
Hi,
I want to activate Litespseed cache plugin – https://pl.wordpress.org/plugins/litespeed-cache/ – using external file. In codex i see function activate_plugin(). I included wp-admin/includes/plugins.php where the function is.
After that error display that function plugin_basename() is undefined, i included file with this function. After that error display another function etc.
Finally, after add 4 files to include the plugin has been activated but doesnt add rules to .htaccess (when you activate this plugin by wp-admin control panel he will add rules automaticly).
Do you know how to resolve this problem? In my opinion the best way is include all admin functions, but i don’t see any tutorial?
Regards, Michal
The topic ‘Activate plugin using external file’ is closed to new replies.