IT Nursery
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:...
  • May 31, 2022
  • 0 Comments
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...
  • May 19, 2022
  • 0 Comments
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...
  • May 19, 2022
  • 0 Comments