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
2550
2551           /**
2552            * Fires immediately before the setting is unregistered and after its filters have been removed.
2553            *
2554            * @since 5.5.0
2555            *
2556            * @param string $option_group Setting group.
2557            * @param string $option_name  Setting name.
2558            */
2559           do_action( 'unregister_setting', $option_group, $option_name );
2560
2561           unset( $wp_registered_settings[ $option_name ] );
2562      }
2563 }
2564
2565 /**
2566  * Retrieves an array of registered settings.
2567  *
2568  * @since 4.7.0