You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The help docs show an example to set meta data for a post: wp post meta set 123 _wp_page_template about.php
However, the set command is not included in the list of sub-commands for the wp post meta command.
Looking at the success message in the examples, it might be that set is an alias for update? If this is the case, it should be noted as such in the docs.
I've discussed this internally with the WP-CLI team and this is the response:
Usually, these aliases are only included for backwards-compatible deprecations. The docs only show the command that is supposed to be used, not the previous one that was deprecated.
We could certainly look into improving that, but the tooling for the docs will then need to be updated to support it.
I can't give you an ETA, but if time permits I'll look into it. Thanks for raising this!
The help docs show an example to set meta data for a post:
wp post meta set 123 _wp_page_template about.php
However, the
set
command is not included in the list of sub-commands for thewp post meta
command.Looking at the success message in the examples, it might be that
set
is an alias forupdate
? If this is the case, it should be noted as such in the docs.Reference: https://developer.wordpress.org/cli/commands/post/meta/
The text was updated successfully, but these errors were encountered: