skip helper
Hi,
I have a post-save helper that sends an email to the user. It works well in the admin, but would it be possible to skip it or "disable it" while saving the data coming from a form (a custom made form on a public page, that saves the data through the PODS api)?
Thanks in advance
1 Answer
Try using the Wordpress conditional tag "is_admin()" to only perform actions if the script is running on the admin:
<?php
if(is_admin()) {
//script is running on the admin
} else {
//script is running on the front-end
}
?>


