when I hook to save_post like this:
and I set new post to be sticky via quick edit this hook is not firing. Hovewer if I change something else apart from “stickiness” only in this quick edit, hook fires. But it’s not acceptable as I’m not making this website for me.
function xxx__set_first_sticky updates transient containing newest sticky post WP_Query object for performance purposes (I don’t want to make new WP_Query for this post on every page load). So I wan’t to run this function on every post save/update/delete etc. Its working in every scenario but not when post stickiness state is changed in quick edit :/
Any ideas how to hook to this quick edit “stickiness” change?
- Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
- Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
- Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.
Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com