Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

publish

add action only on post publish – not update

August 3, 2022August 2, 2022 by Magenaut

I have action which adds meta field with value on post publish. Problem is that when I update post meta field is reset to default value.

Categories Q&A, Wordpress Tags actions, posts, publish Leave a comment

How to change post status in hook?

August 3, 2022August 2, 2022 by Magenaut

I have similar problem as described in How to trap “Publish” button to check for meta box validation?
Answer there is to hook into save_post and change post type. How can I do it?
I try to use wp_transition_post_status but it doesn’t work for me…

Categories Q&A, Wordpress Tags plugin-development, post-status, publish Leave a comment

featuring old articles without messing up with the archive

August 2, 2022August 1, 2022 by Magenaut

This is all about featuring content in WP.

Categories Q&A, Wordpress Tags date, featured-post, post-status, posts, publish Leave a comment

How to call a REST endpoint when a post is published?

August 2, 2022August 1, 2022 by Magenaut

I need to make WordPress call a specific REST endpoint when a new post is published, passing the most important post data via JSON.

Categories Q&A, Wordpress Tags hooks, publish, rest-api Leave a comment

How to add a “publish” link to the quick actions

August 1, 2022July 31, 2022 by Magenaut

I’m trying to add a “Publish” link by the quick actions:

Categories Q&A, Wordpress Tags actions, filters, posts, publish, quick-edit Leave a comment

How to prevent posts from being published too close to each other?

August 1, 2022July 31, 2022 by Magenaut

I manage a blog which consists of about 25 writers. Sometimes a few of them are in the process of writing a new post at once, and they end up publishing them too close to each other.

Categories Q&A, Wordpress Tags posts, publish, scheduled-posts Leave a comment

How to make scheduled post preview visible to anyone?

August 1, 2022July 31, 2022 by Magenaut

When I write a post and schedule it for later publishing, WordPress will allow me to preview the post as if it was already published but I need to be logged in as administrator (or anyone who is authorized to preview the post).

Categories Q&A, Wordpress Tags previews, publish Leave a comment
Newer posts
← Previous Page1 Page2 Page3
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress