Created
May 5, 2018 05:02
-
-
Save garvs/8548aca8ae213c3569a8bccd707aaa69 to your computer and use it in GitHub Desktop.
ure_addons_to_copy_for_new_blog filter filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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