badfun/custom-post-type-auto-menu — pull request #3 by codbox (2014-07-04 06:20:18+00:00)
Title: Changed the hook from sav_post to transition_post_status

-- changed the hook form save_post to transition_post_status.
-- now the menu item is removed whenever the post status changes from publish, and added back when it is again published.
-- addresses - draft, pending review, scheduled issues.
-- For repeated menu item: moved the cleaning code to 'clean_for_compare' method in Cpt_Nav_Menu_Handler class.

--- Provided two filter, for cleaning the title for compare.
1.) ctp_auto_override_clean_compare if true, then CPT auto menu cleaning won't be done, ie: currently wp_kses_decode_entities and trim.,
2.) ctp_auto_clean_title: additional cleaning of title can be done.
3.) thought it's better for the user to have this functionality.

-- aims to seperate the admin settings functionality, and the nav menu add/deleting functionality to be seperated.