register_setting

register_setting

Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7

do_action('register_setting') is found 1 times:

  • /wp-includes/option.php line 3032
    	 * @param string $option_group Setting group.
    	 * @param string $option_name  Setting name.
    	 * @param array  $args         Array of setting registration arguments.
    	 */
    	do_action( 'register_setting', $option_group, $option_name, $args );
    
    	$wp_registered_settings[ $option_name ] = $args;
    }
    
    /**
     * Unregisters a setting.