rest_delete_widget

rest_delete_widget

Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7

do_action('rest_delete_widget') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php line 468
    		 * @param string                    $sidebar_id ID of the sidebar the widget was deleted from.
    		 * @param WP_REST_Response|WP_Error $response   The response data, or WP_Error object on failure.
    		 * @param WP_REST_Request           $request    The request sent to the API.
    		 */
    		do_action( 'rest_delete_widget', $widget_id, $sidebar_id, $response, $request );
    
    		return $response;
    	}
    
    	/**
    	 * Performs a permissions check for managing widgets.