I looked into the difference between action and filter hooks, and as far as I understand, it is not possible to have a function, which is added to an action hook, return a (custom) value.
- Upon saving a post, I try to save another post. Therefore I use
add_action( 'save_post', 'create_another_post');
- Depending on some conditions, saving this additional post takes place (for that case I'd like to return
true) or it doesn't (return
How would I go about implementing this
I appreciate your help and ideas.