You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The priority of 100 when adding the add_rewrite_rules hook for wp_loaded means that add_permastruct is called after the save_post action. This means get_post_permalink will not give the right permalink in save_post.
With a priority of 10 it works fine. Why is the priority 100? Would another hook than wp_loaded be more appropriate?
The text was updated successfully, but these errors were encountered:
Not sure if piklist is doing the right thing saving forms in wp_loaded, and if they are, how to ensure custom-post-type-permalinks runs first, besides bumping the priority in piklist. Thoughts?
The priority of 100 when adding the
add_rewrite_rules
hook forwp_loaded
means thatadd_permastruct
is called after thesave_post
action. This meansget_post_permalink
will not give the right permalink insave_post
.With a priority of 10 it works fine. Why is the priority 100? Would another hook than
wp_loaded
be more appropriate?The text was updated successfully, but these errors were encountered: