Stop validation on edit page
-
Hello,
I’ve found the code below to stop the plugin from validation in the admin area if (!is_object(self::$validation_errors) and ! is_admin())
but I need it to stop validation when a user clicks Edit Record from the frontend along with on the admin area, I have tried both of the following and can’t get it to work
if (!is_object(self::$validation_errors) and ! is_page(206))
if (!is_object(self::$validation_errors) and (! is_admin() || ! is_page(206)))
That’s definitely the page id and I’ve tried with page name etc to double check but nothing works. Can you tell me if this is possible and an idea of how to do it?
Thank you
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Stop validation on edit page’ is closed to new replies.