Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Handy method to remove the hook for email notifications of custom post status changes
- function ef_remove_post_status_notifications() {
- global $edit_flow;
- // Edit Flow originally hooks into 'transition_post_status' to know when to send custom post status notifications
- remove_action( 'transition_post_status', array( &$edit_flow->notifications, 'notification_status_change' ), 10, 3 );
- }
- // Hook this action into init so Edit Flow is already loaded
- add_action( 'init', 'ef_remove_post_status_notifications' );
- ?>
Add Comment
Please, Sign In to add comment