This script finds all your wordpress sites under a specific parent directory and then loops through them and prompts you to accept or reject an upgrade for plugins, themes and wordpress core. # find all Wordpress installs WP_SITES=`find /path/to/your/sites/root -regex...
Open Source Apps
Adding BCC to Divi Contact Form
The Divi contact form allows you to send to multiple email addresses by opening the properties of the form and entering multiple comma separated email addresses but they end up all in the To: field Adding BCC to Emails using a functions.php Snippet You need to edit...
Using OneDrive to sync development directories
Greenshot – Makes documentation easier
I take lots of screenshot per day. Greenshot is a handy utility that makes that very easy. I find it useful for: capturing the settings in configuration dialogs, creating step by step how to's and documenting before and after changes....
Toggen deploys a new website
So I have built and hosted a new website for Roger Clark Pest Management they are a family owned and operated Pest Control and Management business in Maitland NSW Australia It uses Wordpress and the Divi theme with one of the many layouts that are provided by the...
Just discovered you can write in Markdown with WordPress
Heading 2 Just insert a Markdown block using gutenburg and away you go I would like to create a definition list Defintion List Heading : This is the definition text Heading 3 And I quote Heading 4 A Code Block { "some": "json" } A code block 2...
E-Commerce Learnings
I have a client who had two Wordpress Woocommerce Stores hosted for $20 each a month on cPanel Servers On inspecting the sites I found Each had between a dozen and two dozen out of date plugins (some had been removed from the Wordpress Plugins Directory because of...
Getting WordPress 5.5 Sitemaps Working with Nginx
Using the nginx recommended config from https://www.nginx.com/resources/wiki/start/topics/recipes/wordpress/ The following config works. Please note the following considerations You need to tell Nginx to send all requests for /robots.txt and /wp-sitemap*.xml to...
Scribus to PDF Print
Just using Scribus to design and print some lapel cards Regarding Scribus - It seems that the stable version will not run or install easily on Fedora 32 so I have had to make do with the Scribus Version 1.5.6.svn Beta. So after getting around the flakey behavior of...
Intelephense squiggly line under function
Adding a missing function definition Using the VS Code Intelephense Extension. You get a squiggly line under a function you know exists. When you hover over it the popup says "Undefined function ... " Go to Preferences and Settings [ Ctrl + , ], search for stubs and...
Reverse Proxy Cups in Nginx
The process is similar to my previous post on proxying a sub directory back to the root. For example https://example.com/test => proxies back to / in the docker container upstream cups-endpoint { # in my case I'm using cups inside # a docker container and exposing #...
Adding custom values to Contact Form 7
https://www.wpguru.com.au/generate-dynamic-tag-contact-form-7/ From the above URL is this code. Just putting it here so I can find it again <?php add_action('wpcf7_init', 'custom_code_generator'); function custom_code_generator(){ wpcf7_add_form_tag('coupon_code',...
The REST API encountered an error
The REST API is one way WordPress, and other applications, communicate with the server. One example is the block editor screen, which relies on this to display, and save, your posts and pages. The REST API request failed due to an error.Error: cURL error 28: Operation...
Switching PHP version on MacOS with brew
Writing a web application and using the some new bells and whistles in PHP such as $var = $var ?? $othervar; only supported in 7.4 php -v # php7.3 brew unlink [email protected] brew install [email protected]
Advanced git
https://youtu.be/duqBHik7nRo Just putting this here for later. A git talk that covers everything that I wonder about with git. Also the speaker has a book which going by her previous courses will be excellent.
Use FORCE INDEX
Just putting this here as I have a SELECT in MySQL that was taking 1.946 sec to return 20 records from a table with 159884 records when using a ORDER BY DESC on a DATETIME field Creating an index and changing the FROM to FORCE INDEX () dropped it down to 0.00079 sec /...
Format validationsErrors
A recursive function that takes a validation error array and return a string with all the different errors concatenated into a formatted string Further to my previous posting https://toggen.com.au/it-tips/cakephp-2-displaying-validation-errors This function will walk...
pgAdmin / pgcli could not send data to server: Socket is not connected
My setup is My home network is IPv6 enabled. I have an AAAA record specifying the IPv6 address of the Amazon EC2 instances Elastic IP <IPv6 enabled home network> | <internet> | <Dockerized Postgres on EC2 Instance> Getting this error message when attempting...