I’m actually quite surprised WP hasn’t already implemented this. I want to add a Cancel button to the edit post screen which will do some cleanup when pressed. After...
I found that Woocommerce is disabling autosave, maybe for good reason, but I’d like to have it turned on and see if it presents an issue. This is what...
I recently read this tutorial about custom fields in WordPress and wrote a simple plug-in to provide a metabox with a set of input fields. I do not use...
After saving a post I check the console and $is_autosave is simply not set function save_func($post_id){ $is_autosave = wp_is_post_autosave( $post_id ); file_put_contents('php://stderr', print_r("Autosave: ".$is_autosave, TRUE)); } add_action('save_post','save_func'); Output: Autosave:...
I have a custom Submenu page with my post type in which I am querying all posts and adding custom textareas and dropdowns that will repeat with each entry....
As the title says, I want to trigger the autosave function of wordpress manually or just disable the “unsaved changes” dialog. The reason for this: I’m developing a plugin...
Setup: WordPress Add/Edit Post/Page A plugin that have its own postbox with several hidden fields. Issue: How these custom hidden fields can be saved along with the other post...
I got stuck with one problem, can somebody please help.. 🙂 I would like to execute custom JavaScript function before post is saved, and i can’t find how to...
My (shared) web host recently sent me this: “Our server monitoring systems keep indicating high server load persistently maintained by your website (…). Most of the hits are to...
I’m just wondering is it wise to delete all post revisions and autosaves from database every once in a while? I mean they take a lot of database space...