Support

Account

Home Forums Front-end Issues Blocking access to wp-admin while using a front-end form Reply To: Blocking access to wp-admin while using a front-end form

  • I think it’s because you have && ! (defined( 'DOING_AJAX' ) instead of && (defined( 'DOING_AJAX' )

    Also, I think that checking for is_admin() is redundant, since you’re using the admin_init action, which only runs on an admin screen.