add_action not using ‘delete_post’ action with wp_delete_post
I am using wp_delete_post function to delete the selected posts shown on the front-end (in my theme page). Posts are being deleted successfully. // delete all selected posts foreach( $_POST[‘list_id’] as $listID ) { if( wp_delete_post( $listID ) ) { echo ‘hi’; } } In my function.php file i added the following hook for the … Read more