Pro sites. There are pending changes to your account

There are a few sites who recently paid with Stripe. But both have the message:
'There are pending changes to your account'

I tried this hook but it does not work:
https://premium.wpmudev.org/forums/topic/there-are-pending-changes-to-your-account#post-899538

  • Nastia
    • Support Rock Star

    Hello Chris Chalmers

    Hope you're doing well!

    I could reproduce the same, after a sign up a message "There are pending changes to your account. This message will disappear once these pending changes are completed." appeared on the admin's dashboard and on the account page. This message appears because the Pro Site still processing Stripe Payments

    As a temporary solution, please use the following CSS code to hide the message from the Account page:

    #psts-general-error {
        display:none;
    }

    Please add this code to Appearance > Customizer > Additional CSS field.

    In the meantime, I flagged this to our developers so they could provide some feedback if this possible to turn off.

    Have a nice day and take care!

    Kind regards,
    Nastia

  • Chris Chalmers
    • Flash Drive

    Hi Nastia
    Thanks for your reply.
    Adding the additional css has no effect. Maybe because the alert message doesn't have any class or id attached to it.

    <div class="updated"><p>There are pending changes to your account. This message will disappear once these pending changes are completed.</p></div>

    I see from the support forum that this issue has been a bug in Pro Sites for quite a while. When is it on the roadmap to be addressed by the dev team?

  • Ivan
    • Developer

    Hi Chris Chalmers !

    You could try adding the following snippet in a MU plugin ( more info about MU plugins is here )

    <?php
    function ps_before_pending_notice() {
    	ob_start();
    }
    function ps_after_pending_notice() {
    	$html = ob_get_clean();
    	$blog_id = get_current_blog_id();
    	if ( !is_main_site( $blog_id ) && 1 == get_blog_option( $blog_id, 'psts_stripe_waiting' ) && class_exists( 'ProSites_Helper_Registration' ) ) {
    		$trialing = ProSites_Helper_Registration::is_trial( $blog_id );
    		if ( !$trialing ) {
    			return;
    		}
    	}
    	if ( $html ) {
    		echo $html;
    	}
    }
    add_action( 'admin_notices', 'ps_before_pending_notice', 98 );
    add_action( 'admin_notices', 'ps_after_pending_notice', 100 );

    It should hide only this notice in Admin area.
    And please, add this CSS-style to hide this message from User area.

    #psts_existing_info #psts-general-error.psts-warning {
      display: none;
    }

    You can add it to WP Dashboard -> Appearance -> Customize -> Additional CSS if your theme supports it.

    Best,
    Ivan.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.