Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: unregister_setting

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
2860
2861           /**
2862            * Fires immediately before the setting is unregistered and after its filters have been removed.
2863            *
2864            * @since 5.5.0
2865            *
2866            * @param string $option_group Setting group.
2867            * @param string $option_name  Setting name.
2868            */
2869           do_action( 'unregister_setting', $option_group, $option_name );
2870
2871           unset( $wp_registered_settings[ $option_name ] );
2872      }
2873 }
2874
2875 /**
2876  * Retrieves an array of registered settings.
2877  *
2878  * @since 4.7.0