register_setting


register_setting ( $option_group, $option_name, $args = array() )

Parameters:
  • (string) $option_group A settings group name. Should correspond to a whitelisted option key name. Default whitelisted option key names include "general," "discussion," and "reading," among others.
  • (string) $option_name The name of an option to sanitize and save.
  • (array) $args { Data used to describe the setting when registered.
Defined at:
Change Log:
  • 4: .

Description

Register a setting and its data.

Related Functions

unregister_setting, get_registered_settings, register_initial_settings, register_meta, set_user_setting

Top Google Results

User discussions

wpseek mobile