Category: Uncategorized

  • Always try to speed up the WooCommerce checkout as much as your can for your customers. A quick tip is to uncheck the “Ship to different address” checkbox by default. Customers do not commonly use this features and it’s a waste of their time having to untick it. So let’s speed up the time checkout […]

  • WordPress white screen after moving hosting? You might have a corrupted .htaccess file. There are many reasons your WordPress installtion could be showing a white screen. In some cases fresh .htacess file in the main directory can fix your WordPress site. I recommend renaming the old file via FTP or SSH. name it something like […]

  • WordPress normally sends emails from [email protected] If you want you to change which email alias WordPress should send emails from, then you can put the following into into your functions.php or a plugin. I’ve also included the function to change the WordPress email sender name. Replace the email and name for your own site.

  • You may have edited some config files for Apache, PHP-FPM, phpMyAdmin or MySQL, and now it’s time to restart for the changes to take affect. For reference, I’m running Bitnami WordPress on Google Cloud Compute Engine.

  • [cc lang=”php”]function wpsnip_remove_sales_flash() { return false; } add_filter( ‘woocommerce_sale_flash’, ‘wpsnip_remove_sales_flash’ ); [/cc]

  • [cc lang=”php”] add_filter( ‘default_checkout_country’, ‘wpsnip_default_checkout_country’ ); add_filter( ‘default_checkout_state’, ‘wpsnip_default_checkout_state’ ); function wpsnip_default_checkout_country() { return ‘US’; } function wpsnip_default_checkout_state() { return ‘CA’; } [/cc]

  • First up let’s add As an example my Plugin is called Puri. Replace that with your Plugin name. First up let’s add the following to the puri.php (yourplugin.php) file in the first level. Once defined let’s register the WordPr ess menu. Go inside the admin folder and find

  • For the optimal and secure WordPress permissions. You can run the following commands by SSH’ing into the linux terminal (I’m using Debian 8 on the Google Compute Engine). We may have to change the Owner and Group of the WP folders, depending on how you’ve uploaded your WordPress site. Let’s fix the ownership and group […]

  • Debug WordPress

    Copy and paste the following into your wp-config.php file, above the “happy Blogging” comment. All errors or notices will now be saved into a debug file which you can find at:

  • sudo mv target-file.html new-name.html