Skip to content

Commit

Permalink
Merge pull request #3355 from WordImpress/issue-2278
Browse files Browse the repository at this point in the history
fix(admin-plugins): add Give menu in plugin menu section for multi sites
  • Loading branch information
ravinderk committed Jun 12, 2018
2 parents 0028810 + 4aa93a6 commit 9c108eb
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit 9c108eb

Please sign in to comment.