Warning: array_map(): Argument #2 should be an array in /post.php on line 1980

How to get a custom save_post function to return the default $post_id, $post, and $status for items with a post status of ‘trash’?

Everything I return, no matter which way I try, spits out
Warning: array_map(): Argument #2 should be an array in /post.php on line 1980

For items in the trash when restoring from trash or changing the post status if I play with different statuses. Seems like any return is just not returning the default array.

Need to get back to the basics here.

Thanks.

Read more here:: Warning: array_map(): Argument #2 should be an array in /post.php on line 1980

Leave a Reply

Your email address will not be published. Required fields are marked *