Skip to content

add_settings_field: remove duplicated tags - #488

Merged
szepeviktor merged 1 commit into
php-stubs:masterfrom
IanDelMar:add_se
Sep 2, 2026
Merged

szepeviktor merged 1 commit into
php-stubs:masterfrom
IanDelMar:add_se

Conversation

@IanDelMar

Copy link
Copy Markdown
Contributor

For add_settings_field(), the following types are the same as those documented in core:

'id'       => 'string',
'title'    => 'string',
'callback' => 'callable',
'page'     => 'string',
'section'  => 'string',

Follow-up to #485.y

Also removes some void types that are added via the void analyzer (no effect on the stubs file).

@szepeviktor

Copy link
Copy Markdown
Member

No escape from the WordPress ecosystem!

@szepeviktor
szepeviktor merged commit 76aa3ca into php-stubs:master Sep 2, 2026
8 checks passed
@IanDelMar
IanDelMar deleted the add_se branch September 3, 2026 06:33
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