save_post hood fire when press button add new
-
Hi!
I created hook ‘save_post’ and hang my function on itadd_action('save_post', 'save_post'); function save_post(){ die('here we are'); }
Why if I press ‘add new’ this function is fired? It is normal behavior. In description of this function is written this will fire when post created or updated. In my case why it work without save and update. It will call twice.
How to change this behavior? I need only one call when I save or update not when I create page…
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘save_post hood fire when press button add new’ is closed to new replies.