How to Search and Replace in Bulk Using WP CLI?
There are several occasions when you want to do a mass search and replace process for a broad set of strings in your WordPress site’s database, and you may need to replace an extensive collection of broken URLs or Keywords. WordPress has some plugins like “Better Search Replace” and “Search…
Cleaner Archives For Better Deployments
Not all files in your project might be necessary for deployment or exporting. Files such as help documents, unit tests, and 3rd-party services configuration files, .etc., can contain accessible, sensitive information that puts your project at risk. Getting rid of all unnecessary files manually upon creating the archive is risky and tiresome. However, VCS systems usually have a feature that packages the project automatically. Git, for instance, has a git archive command that creates an archive for your repository. This archive can be customized to exclude specific files or directories by using the .gitattributes configuration file.
Include Custom Post Types in WordPress “Activity” Dashboard Widget
The Dashboard screen presents information in blocks called widgets. By default, WordPress delivers five widgets on this page: At a Glance, Activity, Quick Draft, WordPress Events and News, and Welcome. Activity widget shows the upcoming scheduled posts, recently published posts and the most recent comments on your posts. Many sites nowadays ships with multiple Custom Post Types, nevertheless, the default Activity widget is not listing them. Including the custom-post-types in the Activity widget will give you as a site administrator or editor better insight about your site posts schedule.
Disallow Authors From Assigning Post Tags in WordPress
You possibly be managing a large magazine or website with many authors and contributors who perhaps be inadequate at creating professional post tags. Leading to low SEO score and poor site structure. One of the easiest ways to resolve this problem is by disallowing post authors from assigning post tags except for site editors and administrators. Fortunately, you need only 6 lines of code: Copy-and-paste the code snippet above into your functionality plugin (or use Code Snippets plugin if you don’t have one).