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
2394
2395           /**
2396            * Fires immediately before the setting is unregistered and after its filters have been removed.
2397            *
2398            * @since 5.5.0
2399            *
2400            * @param string $option_group Setting group.
2401            * @param string $option_name  Setting name.
2402            */
2403           do_action( 'unregister_setting', $option_group, $option_name );
2404
2405           unset( $wp_registered_settings[ $option_name ] );
2406      }
2407 }
2408
2409 /**
2410  * Retrieves an array of registered settings.
2411  *
2412  * @since 4.7.0