rest_prepare_widget

rest_prepare_widget

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('rest_prepare_widget') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php line 742
    		 * @param WP_REST_Response|WP_Error $response The response object, or WP_Error object on failure.
    		 * @param array                     $widget   The registered widget data.
    		 * @param WP_REST_Request           $request  Request used to generate the response.
    		 */
    		return apply_filters( 'rest_prepare_widget', $response, $widget, $request );
    	}
    
    	/**
    	 * Prepares links for the widget.
    	 *
    	 * @since 5.8.0