all plug-ins load scripts on all pages

Most plugins will load their assets in the header on all pages, because they know very little about your site, and how you’re using the plugin. This is a reason why it’s generally advisable to use plugins only if you have to: they’re built to work for as many people as possible, which means they’re … Read more

Backup Site Data from a Bitnami WordPress instance

Bitnami support got back to my support ticket with the following response: Yes, the data that requires persistence can be found in the “/bitnami” folder. Specifically, the “/opt/bitnami/wordpress/wp-config.php” file and the “/opt/bitnami/wordpress/wp-content” directory are symbolically linked to the “/bitnami/wordpress” folder. Similarly, the MariaDB data is symbolically linked to “/bitnami/mariadb”. However, it’s important to note that … Read more

404 Error after URL update

You might have already done this, but while logged into the admin of your site, go to Settings > General and then review the urls in WordPress Address (URL) and Site Address (URL). If they do not read with the new domain name, then they need to be updated. Once you have the correct urls … Read more

Add text/link next to the last word of each post

If your site or post type doesn’t use Gutenberg, this is likely because of the wpautop function: it is applied with priority 10 on the_content filter, so the paragraph tags have already been added by the time your filter is running. Changing your callback’s priority to be less than 10 will likely solve your issue. … Read more

How to change the text of Publish Button

You can use the following code to change Publish button’s text to Save even after editing Post Status. Do not forget: Clicking OK or Cancel buttons when editing Post Status will change Publish button’s text. This happens also when editing Post Visibility and Publish time. I used setTimeout() to postpone changing Publish button’s text after … Read more