I'm building post to email plugin and I need to add a checkbox to the publish post widget like this one:
My idea is to add a checkbox that says "Send this by email", and get that info inside the publish_post listener:
add_action('publish_post', function($post_id) {
// Was the checkbox checked?
}
How can this be done?
$_POST
inside the callback?