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...
Wordpress
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
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...
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...
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...
MacOS Scanning – Now working with IPv6
I had problems printing and scanning from my MacOS laptop to a HP Officejet Pro 8620. I ended up fixing it by turning off IPv6 on the printer and the MacBook. But it appears that you can have IPv6 turned on and it still work. Please see below...
OPTIONS pre-flight Check CakePHP 2
Before fetch sends a POST request to another domain it will do a CORS pre-flight check. The following website has the HTTP OPTIONS middleware code you can use for CakePHP 3. It mentions for a CakePHP 2 version you need to go to another website which is unavailable now...
Download failed. cURL error 77 – Have you tried switching it off and back on?
I recently updated the PHP version on my Amazon Linux AMI and then a few days later notice I could not download Wordpress updates. I was getting the following error: Download failed. cURL error 77 If you get this error you might try restarting your web server process...
Dealing with Flashes of Unstyled Content in NextJS
So I made a YouTube video of a challenge I had of a FontawesomeIcon React component flashing to massive when loading the page and then back to the right size. This video shows the work-a-rounds. I tried to include the code snippets here but the self hosted wordpress...
Call to undefined function opcache_reset()
Got this error message 2018/03/13 22:12:41 [error] 17149#0: *7057 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function opcache_reset() in /path/to/wordpress/wp-content/plugins/opcache/opcache.php:72 And then created a file...
Just discovered the Elegant Themes — Visual Builder
So I have been using the Divi Template from Elegant Themes and really have paid no attention for a long time. But just today I was looking at the Youtube and discovered the Visual Builder. To describe it I would say it gives you Squarespace style inline editing within...