Article of the week

Updating WordPress database URLs - part 2

Updating WordPress database URLs - part 2

03 Jan 2017 13:03:49


Second part of the series on the subject of replacing URLs in WordPress database.


In this second part on the updating WordPress database URLs I'll concentrate on a database-wide approach. All tables will be scanned and old URLs updated to new ones. Also serialized data will be properly dealt with. In this part, mysql utility will not be involved ( but ...

Read full article »

Recent articles

Setting home and siteurl dynamically in Wordpress

10 Dec 2016 09:44:06

Web development

Setting home and siteurl dynamically in Wordpress

If for some reason you have set siteurl and / or home options wrong in your WordPress installation database and as a result can't access admin panel, or perhaps have a reason not to change these options in wp_options table, you can overwrite them either in wp_config.php or ...

Read more »

The most used Wordpress hooks

28 Nov 2016 20:53:05

Web development

The most used Wordpress hooks

Below is a list of the most often used hooks (sorted by the number of callbacks attached ) on a vanilla installation of WordPress (v.4.6.1) with twentysixteen theme loaded. On such a setup, in total I found 261 hooks, something was attached to. As seen in the list, the most ...

Read more »

Find total of a column of numbers with BASH

28 Nov 2016 20:53:05

Host development

Find total of a column of numbers with BASH

Suppose you have a file with a long list of items followed or perhaps preceded by whole numbers and you are asked to find the total of those numbers. The file might look like this (case 1): aaa:23 bb:2 ccc:98 . . . or perhaps like this (case ...

Read more »