rest_save_sidebar WordPress Action Hook
The rest_save_sidebar hook is used to save the sidebar settings for a particular theme. Thishook is fired when the "Save Sidebar" button is clicked on the "Appearance > Sidebars" page.
do_action( 'rest_save_sidebar', array $sidebar , WP_REST_Request $request ) #
Fires after a sidebar is updated via the REST API.
Parameters
- $sidebar
(array)The updated sidebar.
- $request
(WP_REST_Request)Request object.
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php
Changelog
Version | Description |
---|---|
5.8.0 | Introduced. |