Skip to content

Conversation

@IanDelMar
Copy link
Contributor

Narrows the $post_type parameter of register_post_type() as it

may only contain lowercase alphanumeric characters, dashes, and underscores

and triggers _doing_it_wrong() in such cases or if empty.

@szepeviktor szepeviktor merged commit 33178a4 into php-stubs:master Sep 7, 2025
7 checks passed
@IanDelMar IanDelMar deleted the register_post_type branch September 7, 2025 11:32
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