How to Migrate a Large WordPress Site
Migrating a large WordPress site is a task that requires careful planning, preparation, and execution. A well-executed migration ensures that your site and data are transferred correctly, efficiently, with minimal downtime and issues. The task should be delegated to...
Are you Using Google Docs to Write your Articles?
Yeah, we thought so too. It has voice typing and it saves lots of time. We noticed that when you use it to write code it puts smart quotes which can break code and that's not good. Also when dictating (voice typing) it keeps adding more space around words and that's...
How to Add to Pay Order Button for Pending Payment Orders on View Order Page in WooCommerce
You’d think that when a customer views an order and the order has a pending or failed status, they should be able to pay right from that view order page, right? Yeah, but nope. The view-order template just renders the order info. The Order Listing page does, however,...
![How to Show a Warning if a Customer's Credit Card is About to Expire in WooCommerce](https://orbisius.com/wp-content/uploads/2022/05/woocommerce-logo-color-black@2x-1080x361.png)
How to Show a Warning if a Customer's Credit Card is About to Expire in WooCommerce
Many payments in WooCommerce just fail because a credit card wasn’t updated recently when WooCommerce Subscriptions or another plugin tried to bill the account. It’s better if this issue is avoided whenever possible. It’s way better to inform your customers that their...
![How to Show a Warning if a Customer's Credit Card is About to Expire in WooCommerce](https://orbisius.com/wp-content/uploads/2022/05/woocommerce-logo-color-black@2x-1080x361.png)
How to Show a Notice to all WooCommerce Customers in the My Account Section
Let’s say you want to show the same message to all of your customers. WooCommere has lots of hooks that we can use to show the message. Since it’s a message that applies to all of your customers then it makes sense to put it in one central location so you can update...
How to Find the Latest Day of The Month in PHP
If you ever need to find the last day of the month in php this is how to do it. You convert to seconds the current year and month and then let date() function to find what's the last day of that selected month. <?php $year = 2024; $month = 2; $last_day_of_month =...
Adminer Login "Session expired, please login again"
Did you have the same problem? Well, do make sure that adminer can access the session folder or if there's a restriction such as openbase dir.(php open_basedir). To check you may need to create a temporary file called 000info.php with the following contents.You can...
How to Redirect using RedirectMatch in Apache .htaccess
We've been making some progress on the WPGigs.net project. It's about WordPress jobs. For some reason the RankMath plugin decides to expose the root custom post type in a sitemap. To avoid duplicate content we redirect /project => /projects. We use RedirectMatch...
How to get Customer Downloads from a WooCommerce Order via PHP
Have you tried called $order->get_downloadable_items() and it returns an empty array? We had the same issue. Are you trying to get the user downloads from a WooCommerce order? The following code snippet is meant to be run after init or even better woocommerce_init...
![Short Links in WordPress Without a Plugin](https://orbisius.com/wp-content/uploads/2015/11/wp_logo_text.png)
Short Links in WordPress Without a Plugin
Have you ever wanted to have short links (example.com/123) to your blog post, so the links are not cut off in social media posts or emails? Over the years we came up with the following Apache rewrite rules that you can insert into your .htaccess file. As always backup...