Skip to content

Commit

Permalink
Merge pull request #17 from andrewlimaza/fixed-error-messages
Browse files Browse the repository at this point in the history
Hide any error notice from PMPro.
  • Loading branch information
ideadude authored May 7, 2020
2 parents 7bdf753 + d41c504 commit 4dbed51
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 4dbed51

Please sign in to comment.