register_setting action-hookWP 5.5.0

Fires immediately before the setting is registered but after its filters are in place.

Usage

add_action( 'register_setting', 'wp_kama_register_setting_action', 10, 3 );

/**
 * Function for `register_setting` action-hook.
 * 
 * @param string $option_group Setting group.
 * @param string $option_name  Setting name.
 * @param array  $args         Array of setting registration arguments.
 *
 * @return void
 */
function wp_kama_register_setting_action( $option_group, $option_name, $args ){

	// action...
}
$option_group(string)
Setting group.
$option_name(string)
Setting name.
$args(array)
Array of setting registration arguments.

Changelog

Since 5.5.0 Introduced.

Where the hook is called

register_setting()
register_setting
wp-includes/option.php 2998
do_action( 'register_setting', $option_group, $option_name, $args );

Where the hook is used in WordPress

Usage not found.