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

[Product Block Editor] Add post_password parameter to the Woo product REST api #39128

Closed
2 tasks
louwie17 opened this issue Jul 6, 2023 · 0 comments · Fixed by #39438
Closed
2 tasks

[Product Block Editor] Add post_password parameter to the Woo product REST api #39128

louwie17 opened this issue Jul 6, 2023 · 0 comments · Fixed by #39438
Assignees
Labels
focus: new product ux revamped product management experience plugin: woocommerce Issues related to the WooCommerce Core plugin.

Comments

@louwie17
Copy link
Contributor

louwie17 commented Jul 6, 2023

As part of #38823 we are creating a new tab that includes a product password field, to protect the product.

Currently the WooCommerce REST api does not have support for a password field, and this can only be accessible by using the core data store for posts.
We should add support for this by adding a post_password property, as the WC_Product class already has the logic in place for this, see: $product->get_post_password( $context ); and set_post_password.

It is fine to add this as part of version3

Acceptance criteria

  • WooCommerce API should expose a post_password param as part of the data
  • WooCommerce API should allow us to update the post_password field.
@louwie17 louwie17 added plugin: woocommerce Issues related to the WooCommerce Core plugin. focus: new product ux revamped product management experience labels Jul 6, 2023
@github-actions github-actions bot added the status: awaiting triage This is a newly created issue waiting for triage. label Jul 6, 2023
@nathanss nathanss self-assigned this Jul 25, 2023
@nathanss nathanss removed the status: awaiting triage This is a newly created issue waiting for triage. label Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus: new product ux revamped product management experience plugin: woocommerce Issues related to the WooCommerce Core plugin.
Projects
None yet
2 participants