I have a function which processes custom metabox data on saving my custom post type: add_action('save_post_customtypehere','myown_save_customtype_fn'); function myown_save_customtype_fn($ID) { ... } However, the function also runs when I trash...
  • May 22, 2022
  • 0 Comments
Which function should be used to move post from trash to published pages? i.e. is there wp_undelete_post or something like? 3 Answers 3 There is not wp_undelete_post but you...
  • May 21, 2022
  • 0 Comments
Today I accidently happend to delete my category right after I’ve noticed there is no trash in categories. I wonder is there any way to include trash bin for...
  • May 15, 2022
  • 0 Comments
I have a Custom Post Type “empresa” and would like to send email when a post type is deleted (moved to trash). I have this function below for my...
  • May 15, 2022
  • 0 Comments
I am creating a plugin to display all posts from all custom post type. It is something like in edit.php, but instead of displaying single post type, I would...
  • May 14, 2022
  • 0 Comments
How could I change the redirect location after a user trashes a page? Right now they go to all pages here:….wp-admin/edit.php?post_type=page I want them to go here:……wp-admin/edit.php?post_type=page&page=custom_page_order 1 Answer...
  • May 8, 2022
  • 0 Comments