Avoiding save_post to run your code twice

When attaching a function in functions.php to save_post I found out it runs my code twice.
Finally found a solution using:

Leave a Reply

Your email address will not be published. Required fields are marked *