Greetings,
I have blog hosted at wordpress.com and desktop app which synchronizes blog content. The problem is that I'm not able to delete previously uploaded image. When I try to delete image with REST deletePost operation it returns "invalid_post_type" error. How it is possible to fix it? I'm able to delete image through XML-RPC operation, but I would like to use REST API only for everything.
According to REST API documentation -
Post types besides post and page need to be whitelisted using the rest_api_allowed_post_types filter
How it is possible to achieve it at wordpress.com hosted blog?
Thanks in advance,
Peter