wp-cli / scaffold-command

Generates code for post types, taxonomies, blocks, plugins, child themes, etc.
MIT License
165 stars 87 forks source link

Add a function for `bulk_post_updated_messages` to the post type scaffold command #274

Closed 2ndkauboy closed 4 years ago

2ndkauboy commented 4 years ago

Feature Request

Describe your use case and the problem you are facing

When a new post type is created with the scaffold command, only the post_updated_messages hook callback will be generated. If a post type entry is updated using the "bulk editing" feature, either "post" or "page" will be shown in the update messages.

Describe the solution you'd like

By extending the post type scaffolding template with the bulk_post_updated_messages hook callback, those bulk functions will also have a message with the correct post type name.