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
2533
2534           /**
2535            * Fires immediately before the setting is unregistered and after its filters have been removed.
2536            *
2537            * @since 5.5.0
2538            *
2539            * @param string $option_group Setting group.
2540            * @param string $option_name  Setting name.
2541            */
2542           do_action( 'unregister_setting', $option_group, $option_name );
2543
2544           unset( $wp_registered_settings[ $option_name ] );
2545      }
2546 }
2547
2548 /**
2549  * Retrieves an array of registered settings.
2550  *
2551  * @since 4.7.0