芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/ppclaunchers.com/wp-content/plugins/easy-wp-smtp/src/Admin/UserFeedback.php
time(), 'dismissed' => false, ]; update_option( self::OPTION_NAME, $options ); } // Check if the feedback notice was not dismissed already. if ( isset( $options['dismissed'] ) && ! $options['dismissed'] ) { $this->display(); } } /** * Display the user feedback notice. * * @since 1.5.3 */ private function display() { // Skip if SMTP settings are not configured. if ( ! $this->is_smtp_configured() ) { return; } // Fetch when plugin was initially activated. $activated = get_option( 'easy_wp_smtp_activated_time' ); // Skip if the plugin is active for less than a defined number of days. if ( empty( $activated ) || ( $activated + ( DAY_IN_SECONDS * self::DELAY_NOTICE ) ) > time() ) { return; } ?>
%s', esc_html__( 'Give Feedback', 'easy-wp-smtp' ) ); ?>
get( 'mail', 'mailer' ); // Skip if no or the default mailer is selected. if ( empty( $mailer ) || $mailer === 'mail' ) { return false; } $mailer_object = easy_wp_smtp() ->get_providers() ->get_mailer( $mailer, easy_wp_smtp()->get_processor()->get_phpmailer() ); // Check if mailer setup is complete. return ! empty( $mailer_object ) ? $mailer_object->is_mailer_complete() : false; } /** * Dismiss the user feedback admin notice. * * @since 1.5.3 */ public function feedback_notice_dismiss() { $options = get_option( self::OPTION_NAME, [] ); $options['time'] = time(); $options['dismissed'] = true; update_option( self::OPTION_NAME, $options ); if ( is_super_admin() && is_multisite() ) { $site_list = get_sites(); foreach ( (array) $site_list as $site ) { switch_to_blog( $site->blog_id ); update_option( self::OPTION_NAME, $options ); restore_current_blog(); } } wp_send_json_success(); } }