How to replace text in WordPress with hooks

Recently a customer asked me to replace the text “Law Office” for “Law Office & McGill” on his WordPress website. The problem was that this website had around 77 pages and 55 blog posts and probably 80% of the content had the text to replace. The way I solved this problem was by using the …

How to verify if blog post don’t have any categories in WordPress

In my current work I have to solve many problems for customers with WordPress websites. It’s common to see this scenario: Website running a child theme based on Twenty something WP Theme A thousand plugins installed, half active, half inactive Patches all over functions.php Custom plugins A mess in the way they created .php files …