Using WordPress ‘block_editor_rest_api_preload()’ PHP function
The block_editor_rest_api_preload() WordPress PHP function preloads common data used with the block editor. This is achieved by specifying an array of REST API paths that will be preloaded for a…