Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add set command to wp post meta documentation #294

Open
1deadpixl opened this issue May 25, 2020 · 1 comment
Open

Add set command to wp post meta documentation #294

1deadpixl opened this issue May 25, 2020 · 1 comment

Comments

@1deadpixl
Copy link

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.

Reference: https://developer.wordpress.org/cli/commands/post/meta/

@Sidsector9
Copy link
Member

Hi @1deadpixl ,

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants