Whenever we use any plugin in wordpress , we need to go to plugin option and then we have to activate them to use them , its fine !
Now my question is
what if someone wants to execute the plugin by default without activating them ?
It means just install that plugin and that plugin will automatically execute on our site without any activation.
Thanks Mubeen for your answer but i just found another solution which is very simple and easy to understand !
Just create a folder name
folder directory should be
just download any plugin from http://www.wordpress.com and extract them and simply copied them in this folder , you will see a new tab in your wordpress plugins option as
the plugins under this tab will automatically executed on your site but there is a problem that if you want to deactivate that plugin then you have to delete that plugin from mu-plugins folder.
source:
http://justintadlock.com/archives/2011/02/02/creating-a-custom-functions-plugin-for-end-users
You can use this code for auto activation WordPress plugin, this will help you to solve your auto activation plugin problem.
Thanks, I Hope your problem will be solve by this code.