URL isn't generated for a scheduled post
-
Scheduled posts don’t get any love because
save_post
action isn’t fired bywp_transition_post_status()
.Switching to the
transition_post_status
action instead ofsave_post
should fix this problem. Since that action provides the old and new statuses, it also eliminates the need forget_post_status()
and lets you move the status check logic to the start of the function. Autosave doesn’t trigger either, so that check can be eliminated.Changes made against the Git repo. Pull request awaits: https://github.com/norcross/yourls-link-creator/pull/1.
https://www.ads-software.com/extend/plugins/yourls-link-creator/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘URL isn't generated for a scheduled post’ is closed to new replies.