As I said in the question post, I finally solved it by looking into the $_POST global. There’s a $_POST['sticky']
field (valued as ‘sticky’) that is there just when a Post is sticky or is being made sticky, and it’s not when a post is not sticky or is being unsticked.
Related Posts:
- How to get WordPress’ hooks/actions run sequence?
- How to know what functions are hooked to an action/filter?
- How many times can I hook into the same action?
- Is there a hook before the user is authenticated?
- Hook into WordPress update?
- switch_to_blog(): Load textdomain
- Can I hook inside another hook?
- Adding function directly vs using hook in function.php
- How can I send to multiple Contact Form 7 recipients based on form input? [closed]
- What is the action hook for save media-form on gallery tab?
- How and where can we request new WordPress hooks to be added?
- Check if action hook exists before adding actions to it
- Post-Registration, post-meta hook?
- Removing action added from constructor
- after login that will redirect user role into a page
- Create hooks based on an array of hook names?
- Access post meta just after publishing
- update post meta using user_register hook not working
- how to create endpoint for downloading pdf files?
- hook to get (and change) the search string before processing
- Is there a recover_post hook to go with trash_post hook?
- How to override languages files in wp-content/languages/themes with child theme
- hooks & filters and variables
- How to detect when a user changes their name?
- How to increase password requirements for registration [closed]
- Can user_register output the password?
- Run add_action hook if condition
- Gutenberg gallery hook errors
- How do I grab specific posts (by post id) and display the title, featured image, and excerpt?
- Empty Super Cache programmatically (with ACF action) [closed]
- How to change title attribute returned by comments_popup_link()?
- How to use do_action_ref_array?
- Problem using role_has_cap hook
- How to find hooks as per Just-In-Time approach?
- WordPress action and filter hooks runs asynchronously?
- Prevent attachment from being deleted
- Update post meta using pending_to_publish hook
- Get log of function/method calls made by do_action() on WordPress initialization
- How to hook in after user’s registration email has been sent?
- Is it possible to change image urls by hooks?
- User update hook
- register_activation_hook not updating
- Redirect customer to login if not logged in when proceeding to checkout
- PHP header() gives headers already sent
- Where is the right place to register/enqueue scripts & styles
- Send along login credentials with comment content
- How to replace a function using a child theme?
- WP_query hooks before execute a search query
- How to pass argument to wp_footer hook with data from a template
- Redirecting from login
- How to use a 3rd party library to send emails?
- I would like to send a notification email (Asana) whenever something is published (posts, pages, custom post types) [duplicate]
- Check if `do_action()` in WordPress returns any result
- Woocommerce table is missing a heading–can I add it by use of a hook?
- Use a variable created in get_header to calculate stuff in wp_footer
- register_deactivation_hook argument -> pass arguments in the selected function
- Alternative to new_to_publish Hook for Custom Statuses
- How to use a WooCommerce action hook?
- Modify Notification Message When Profile Updated
- Force file download in WordPress
- How to use pre_get_posts
- hooks for automatic approve user registration according to data in custom fields
- How to render an element, that was saved as a template, using a hook?
- How to use embed_content hook?
- Notify admin when Custom post meta data gets updated or deletet
- WP Cron not executing after timespan
- Action hook with wrapper html
- Thickbox ‘tb_unload’ function being called twice
- How to remove a meta description or other contents
- Hooking save_post breaks check for term in added_term_relationship hook?
- Restrict editing of post type to list stored in user meta
- Delay action unltil the untill previous (hoocked) action is completed
- Rewrite the search page to use an appended slug + parameter
- What is the hook to remove a menu items group from Appearance > Menus column Add menu items
- Add stuff above header edit form
- ‘user_register’ hook – need to distinguish if created from wp admin panel
- do_action not working in loop
- add_action doesn’t work for my function
- profile_update hook does not fire from front-end
- Add HTML code before the title of the Tag page
- Get First Post content and edit it using pre_get_posts (or similar?!)
- WP_mail() Issue. Duplicate emails if $_GET[‘A’] == email
- Hooks with same priority number. Can one stack items returned in divs, position: absolute each with their own z-index?
- trying to locate the correct file to edit my internal linking anchor tags
- Can add_image_size be added earlier
- Why does get_post() not return anything?
- Hook to change Author Info
- Send email to post author 1 day before his project ends
- can’t access dashboard and showing forbidden page
- prepopulate form from a hook within wordpress function.php file
- Query author’s posts & posts that have author’s id as meta value
- Change Title Type
- admin_post hook not working
- What is meaning of BEFORE and AFTER in this hook name?
- How to display before H1 Title
- Thesis Theme -> hooks not working for custom function
- Can I display text that’s generated by a hook in another place in the HTML?
- How to set Post ID from context to an attribute in child block of Gutenberg Query Loop
- Callback API for getting response from fygaro payment gateway
- Changing login url