What's the right hook to use as a post is loading?
-
I’m trying to write a rudimentary plugin that will evaluate posts as they load. If the post has less than a certain word count, and is older than x days, I want my function to kick in and:
a) Set up a 301 redirect to the post’s parent category, and
b) delete the original post (so that it doesn’t show up in Archive listings.Can anyone recommend how to hook this into WordPress when the post is called?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘What's the right hook to use as a post is loading?’ is closed to new replies.