Question

How is it possible to upgrade a post to make it sticky directly from code, not by admin area? Is it possible through a code like:

update_post_meta($post_id, $meta_key, $meta_value, $prev_value);

In this case, the $post_id is known, but the $meta_key?

Thank you in advance for your answers

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top