In this previous post we managed to fetch the endpoint and store the response in a JSON file in wordpress as a static file. We have hooked the api calls to wp_footer which can put tremendous load to server as that will get executed on every new pageload. Hence we are trying to fetch API… Continue reading Fetch API And Store To JSON File In WordPress Every 15 Minutes
Category: Wordpress
Move All WordPress Posts To Trash
If you need to move all WordPress posts to trash, you can use a custom function and the wp_trash_post function to do so. In this post, we’ll walk through the steps to create a function that loops through all posts and then trashes all posts. And then hook it to an action so that it… Continue reading Move All WordPress Posts To Trash
Disable WordPress Core Sitemaps
WordPress started pushing own sitemaps after their Version 5.5 release. This is a wonderful feature which provides effortless sitemap generation. Works great for sites where all the pages and posts needs indexing. The default sitemap can then be submitted to the search engines and periodically sitemap gets updated as and when there is an update… Continue reading Disable WordPress Core Sitemaps
Fetch API and store to JSON file in WordPress
At times when we have limited access to an API endpoint where the get calls are restricted to a certain number of times, yet we want to show data from API every time a user hits our page. And when we have to do all this using WordPress as a platform, there is an easy… Continue reading Fetch API and store to JSON file in WordPress
Block RESTAPI access to your WordPress site
WordPress asking for FTP credentials on localhost
Unable to Add/Delete plugin in localhost?
After you new and shiny localhost installation you go ahead and start cleaning up. Keeping one fallback theme twenty twenty and deleting others. Then you go ahead and try deleting the Hello Dolly plugin and the Akismat plugin which I believe may not have much usage in localhost and you face this issue of unable to delete or install wordpress plugin without error.