woocommerce / woocommerce/wc-api-php

Custom Tab Title and Custom Tab Content

Open
#337 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stale
Dominant language
PHP
Stars
546
Forks
158
Avg merge
3h 21m
Merged PRs (30d)
2

Description

While creating or updating a product with this api it seems not to be possible to add data to Custom Tab Title and Custom Tab Content.
Visible at Extras-Tab of a product.

I tried to set it unter meta_data with:
key=> "wc_productdata_options",
value => [ "_custom_tab" : "My tab content", "_custom_tab_title": "My Tab" ]

But that did not work.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the product create and update API handles the reported meta_data keys, especially _custom_tab and _custom_tab_title. Verify the behavior against the product Extras tab; done means both the custom tab content and title can be saved through the API and are visible there.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.