Closed goldenapples closed 1 year ago
The third argument passed along with the wp_insert_post_data hook can be a number of different types.
wp_insert_post_data
This avoids PHP errors trying to access a WP_Post object as an array by coercing that value to an array before trying to access it.
Thanks, I've updated the @param annotation. Care to re-review? :pray:
@param
The third argument passed along with the
wp_insert_post_data
hook can be a number of different types.This avoids PHP errors trying to access a WP_Post object as an array by coercing that value to an array before trying to access it.