Skip to content

Commit

Permalink
Hide any error notice from PMPro.
Browse files Browse the repository at this point in the history
Hide error messages on subsite to reduce confusion.
  • Loading branch information
andrewlimaza committed Apr 7, 2020
1 parent ea7e727 commit d41c504
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion inc/class-pmpro-manage-multisite.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static function init() {
*
*/
public static function add_admin_menu() {
add_menu_page( __( 'Memberships', 'pmpro-multisite-membership' ), __( 'Memberships', 'pmpro-multisite-membership' ), 'manage_options', 'pmpro-multisite-membership.php', array( __CLASS__, 'settings_page' ), 'dashicons-groups' );
add_menu_page( __( 'Memberships', 'pmpro-multisite-membership' ), __( 'Memberships', 'pmpro-multisite-membership' ), 'manage_options', 'pmpro-multisite-membership', array( __CLASS__, 'settings_page' ), 'dashicons-groups' );
}

/**
Expand Down Expand Up @@ -83,6 +83,9 @@ public static function settings_page() {
</div>
</form>
</div>
<style>
.error { display:none }
</style>
<?php

if( defined( 'PMPRO_DIR' ) ) { require_once( PMPRO_DIR . '/adminpages/admin_footer.php' ); }
Expand Down

0 comments on commit d41c504

Please sign in to comment.