As we can get a JSON response from the Github repository’s file if we create a file in JSON format, for, e.g. So I wanted a similar response from WordPress for use in a project; however, I was not able to find any article until I had a conversation with my company’s founder he told me about an article he wrote. In that article, I found a PHP script that removed the plain text I wanted so I could leave the reader in JSON format. I copied the script into a file called plaintext.php and pasted it into the following folder.

/wp-content/themes/current_theme_name/planefile.php

After doing that, I got an option while creating new pages in templates to create a blank page. However, I am not getting an option of templates while creating a new post; I have to figure things out for that.