Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(admin-plugins): add Give menu in plugin menu section for multi sites #3355

Merged
merged 2 commits into from
Jun 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions includes/admin/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ function give_filter_addons_do_filter_addons( $plugin_menu ) {
}

add_filter( 'show_advanced_plugins', 'give_filter_addons_do_filter_addons' );
add_filter( 'show_network_active_plugins', 'give_filter_addons_do_filter_addons' );

/**
* Make the Give Menu as an default menu and update the Menu Name
Expand Down Expand Up @@ -230,6 +231,7 @@ function give_filter_addons_filter_addons( $views ) {
}

add_filter( 'views_plugins', 'give_filter_addons_filter_addons' );
add_filter( 'views_plugins-network', 'give_filter_addons_filter_addons' );

/**
* Set the Give as the Main menu when admin click on the Give Menu in Plugin section.
Expand Down