I have the following code in a project. function vb_post_modified_date_update($data, $postarr) { if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return; if (!empty($postarr...
I have a form on the frontend of WordPress which is saving all fields except a checkbox array. It displays and saves the ...
-
May 29, 2022
- 0 Comments
I developed a plugin having a custom metabox that is using the save_post hook to store data. The plugin is 18 months old ...
-
May 29, 2022
- 0 Comments
I want to update/delete a post meta when a custom post (in this case custom post type is “booking”) is updated upon the ...
-
May 29, 2022
- 0 Comments
I’m using a custom post type with custom meta fields, but autosave and the “unsaved changes” dialog don’t seem to be triggered for ...
-
May 27, 2022
- 0 Comments
I use save_post hook, and I have to know inside this hook function, whether it is a publishing ( draft to publish ) ...
-
May 27, 2022
- 0 Comments
I set up two select boxes in one meta field by putting two arrays inside the ‘options’ array of my callback. The HTML ...
-
May 26, 2022
- 0 Comments
I need the following functionality. Whenever my custom post type is updated or saved I need to overwrite certain custom post metas. I ...
-
May 26, 2022
- 0 Comments