WordPress.org

Make WordPress Core

Opened 2 weeks ago

Last modified 8 days ago

#48745 reopened feature request

Disable Admin Email Verification Screen by Variable in wp-config.php (or other means)

Reported by: jadonn Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.3
Component: Users Keywords:
Focuses: administration Cc:
PR Number:

Description

After discussing the new admin email verification screen in this week's #hosting-community team Slack meeting, some members would like to be able to disable the admin email verification screen by setting a value in wp-config.php instead of adding filters to the websites they manage on behalf of their customers.

Could this (using a variable in wp-config.php) be a possible alternative for disabling the admin email verification screen?

If this is not an acceptable alternative, are there other acceptable alternatives?

Change History (10)

#1 @SergeyBiryukov
2 weeks ago

  • Component changed from Administration to Users

This ticket was mentioned in Slack in #hosting-community by jadonn. View the logs.


2 weeks ago

#3 @jadonn
2 weeks ago

Another team member from #hosting-community asked about disabling the admin email verification screen from within the WordPress admin dashboard settings, like through a toggle or check box. I wanted to mention that here as another possible alternative for managing this feature.

#4 @anant101289
2 weeks ago

  • Keywords reporter-feedback added
  • Resolution set to invalid
  • Status changed from new to closed

Hello @jadonn,

Yes,We can do this by adding checkbox in settings.if checked then we disabled the admin email verification screen.

Thanks

#5 @anant101289
2 weeks ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

#6 follow-up: @anant101289
2 weeks ago

  • Keywords close dev-feedback added
  • Resolution set to worksforme
  • Status changed from reopened to closed

Hello,

please check attached image and below code

https://prnt.sc/q03vqq

Check if checkbox checked then disabled the email verification screen

<?php
add_action('admin_init', 'disbled_email_verification_screen');
if(!function_exists('disbled_email_verification_screen')) {

        function disbled_email_verification_screen() {

                $email_veri_screen = (int)get_option('disabled_email_veri_screen');
                if('1' == $email_veri_screen) {
                        add_filter( 'admin_email_check_interval', '__return_false' );
                }
        }
}
Last edited 2 weeks ago by anant101289 (previous) (diff)

This ticket was mentioned in Slack in #core by anant101289. View the logs.


2 weeks ago

#8 in reply to: ↑ 6 @SergeyBiryukov
2 weeks ago

  • Keywords reporter-feedback close dev-feedback removed
  • Resolution worksforme deleted
  • Status changed from closed to reopened

Replying to anant101289:

please check attached image and below code

Hi there, thanks for contributing to WordPress!

Tickets are generally closed as worksforme when the bug reported in the ticket cannot be reproduced, which is not the case here. Please see The Bug Tracker (Trac) and Trac Workflow Keywords handbook articles for more details.

Reopening to continue the discussion.

#9 @anant101289
2 weeks ago

Hello @SergeyBiryukov - can you please attach image so, i can check

#10 @JavierCasares
8 days ago

Why not create something like the Fatal Error Handler?

<?php
define( 'WP_DISABLE_FATAL_ERROR_HANDLER', false );

Something like option: disabled_email_veri_screen

<?php
define( 'WP_DISABLE_EMAIL_VERI_SCREEN', false ); // true / false
Note: See TracTickets for help on using tickets.