Currently, I have a function called 'pub_notification' in my functions.php file which sends an email when the post is published, using the following code:
add_action('publish_post', 'pub_notification');
I would like to separate these functions by adding another button called 'Send Notification' below the default 'update/publish' button, which, when clicked, would save the post, including the custom field data, and then execuite my 'pub_notification' function.
Any help would be very much appreciated.
Of course this means I do not want to tie the execution of my 'pub_notification' function to either 'save_post' or 'publish_post' actions, but rather I want it tied to the click of the 'Send Notification' button.