Skip to content

Instantly share code, notes, and snippets.

@garvs
Created May 5, 2018 05:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garvs/8548aca8ae213c3569a8bccd707aaa69 to your computer and use it in GitHub Desktop.
Save garvs/8548aca8ae213c3569a8bccd707aaa69 to your computer and use it in GitHub Desktop.
ure_addons_to_copy_for_new_blog filter filter
<?php
add_filter('ure_addons_to_copy_for_new_blog', 'ure_addons_to_copy_for_new_blog', 10, 1);
function ure_addons_to_copy_for_new_blog($addons) {
$addons['admin_menu']->copy = true;
$addons['widgets_admin']->copy = true;
$addons['widgets_show']->copy = true;
$addons['meta_boxes']->copy = true;
$addons['other_roles']->copy = true;
return $addons;
}
// end of ure_addons_to_copy_for_new_blog()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment