• 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. ??

Viewing 1 replies (of 1 total)
  • Thread Starter afrael

    (@afrael)

    Thanks for photomatt from #wordpress
    I schould add unserialize() before this entry. ?? like:
    unserialize(‘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”;}’);\);

Viewing 1 replies (of 1 total)
  • The topic ‘I wanna activate some of plugins during installation’ is closed to new replies.