Skip to content

Narrow return type for wp_update_category() #358

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

Merged
merged 2 commits into from
Aug 20, 2025

Conversation

IanDelMar
Copy link
Contributor

The function wp_update_category() returns:

The ID number of the new or updated Category on success. Zero or FALSE on failure.

The function [`wp_update_category()`](https://developer.wordpress.org/reference/functions/wp_update_category/) returns:
> The ID number of the new or updated Category on success. Zero or FALSE on failure.
@szepeviktor szepeviktor merged commit 3c21654 into php-stubs:master Aug 20, 2025
7 checks passed
@IanDelMar IanDelMar deleted the wp_update_category branch August 20, 2025 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants