post_type_link hook without page load prevents counting
-
This might be on purpose, if thats the case please dismiss my issue.
Describe the bug
We have a crud logic where we have courses with individual course dates that are programmatically creating course-date posts for utilizing wordpress filter logics upon those individual dates. These course dates are not displayed directly but have a post_type_link hook where they get the “parent” course plus a query parameter. so instead of
/course-date-1we have/course?dateid=12345where 12345 is the course date post id.They get listed correctly but are not counted as course date visits. I cant really tell if the page load is added to the /course
To Reproduce
Alter the post_type_link in a way where the underlying post is not loaded.Expected behavior
It should count the request not the page load.
The topic ‘post_type_link hook without page load prevents counting’ is closed to new replies.