FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[DevHub] Update `tax_input` of `wp_insert_post` to include term IDs for non-hierarchical taxonomy · Issue #2298 · WordPress/Documentation-Issue-Tracker · GitHub

[DevHub] Update tax_input of wp_insert_post to include term IDs for non-hierarchical taxonomy #2298

Description

Reported by andfinally via User Contributed Notes.

Issue Description

The description of the $tax_input in the docblock for this function is ambiguous – it doesn’t mention that you can pass an array of term IDs for a non-hierarchical taxonomy.

URL of the Page with the Issue

https://developer.wordpress.org/reference/functions/wp_insert_post/#parameters

Section of Page with the issue

Parameters

Why is this a problem?

Misrepresents the accepted values of tax_input.

Suggested Fix

Review and verify accepted values of tax_input are properly documented.

Metadata

Metadata

Assignees

Labels

code referenceIssues for Code Reference portal of DevHubdeveloper documentation (DevHub)Improvements or additions to developer documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


Back | FazBrowse Home | New Git URL