is_plugin_screen() ) { return; } if ( '' !== (string) get_user_meta( get_current_user_id(), self::META_DISMISSED, true ) ) { return; } // Only after they have actually run an audit (i.e. they've seen value). if ( ! get_option( 'arwc_scan_data' ) ) { return; } // Auto-retire: stamp when the prompt first became eligible and stop showing // it after two weeks, whether or not it was clicked — a long-time user // shouldn't keep seeing it. $first_shown = (int) get_option( self::OPTION_FIRST_SHOWN, 0 ); if ( 0 === $first_shown ) { $first_shown = time(); update_option( self::OPTION_FIRST_SHOWN, $first_shown, false ); } if ( ( time() - $first_shown ) > 14 * DAY_IN_SECONDS ) { return; } $dismiss_url = wp_nonce_url( add_query_arg( 'arwc_review', 'dismiss' ), 'arwc_review' ); ?>