I wanna activate some of plugins during installation
-
Hi everyone.
I wanna activate 5 plugins during instalation so I opened wp-admin/includes/schema.php and modify
add_option('active_plugins');
to:
add_option('active_plugins', 'a:5:{i:0;s:43:"UltimateTagWarrior/ultimate-tag-warrior.php";i:1;s:26:"aizattos_related_posts.php";i:2;s:43:"all-in-one-seo-pack/all_in_one_seo_pack.php";i:3;s:30:"customizable-post-listings.php";i:4;s:27:"wp-autoblog/wp-autoblog.php";}');
When I want install everything is ok but any of this plugins are not activated and in datebase is not:
a:5:{i:0;s:43:"UltimateTagWarrior/ultimate-tag-warrior.php";i:1;s:26:"aizattos_related_posts.php";i:2;s:43:"all-in-one-seo-pack/all_in_one_seo_pack.php";i:3;s:30:"customizable-post-listings.php";i:4;s:27:"wp-autoblog/wp-autoblog.php";}');
but something like:
s:235:"a:5:{i:0;s:43:"UltimateTagWarrior/ultimate-tag-warrior.php";i:1;s:26:"aizattos_related_posts.php";i:2;s:43:"all-in-one-seo-pack/all_in_one_seo_pack.php";i:3;s:30:"customizable-post-listings.php";i:4;s:27:"wp-autoblog/wp-autoblog.php";}";
I don’t know where I can find function which change me this rekord.
How can i do this?
Thanks for help and sorry of my English. ??
- The topic ‘I wanna activate some of plugins during installation’ is closed to new replies.