I'm working on a plugin that we'll remove posts from the 'sticky posts'. I'll use the post ID to find it. What function should i use to remove the sticky option after i get this post? Something like this:

update_post($id, 'sticky', false); (i know the above example won't work...)


Ok, it was simple...

unstick_post( $post_id );

Thanks to https://wordpress.stackexchange.com/a/54052/65424

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.