register_setting_args WordPress Filter Hook

The register_setting_args hook is used to filter the arguments used when registering a setting. This hook can be used to add custom arguments, change the default values for certain arguments, or remove arguments altogether.

apply_filters( 'register_setting_args', array $args, array $defaults, string $option_group, string $option_name ) #

Filters the registration arguments when registering a setting.


Parameters

$args

(array)Array of setting registration arguments.

$defaults

(array)Array of default arguments.

$option_group

(string)Setting group.

$option_name

(string)Setting name.


Top ↑

Source

File: wp-includes/option.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More