Skip to content
Morgan Hvidt
  • Home
  • Blog
    • Personal
    • Development
    • WordPress
  • Projects
  • Contact

WordPress

Remove “on sale” badge on WooCommerce

Posted on Published March 20, 2018November 27, 2017 by Morgan

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

Change Default country and state on WooCommerce checkout

Posted on Published March 20, 2018November 27, 2017 by Morgan

[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]

How to register a menu using WPPB (WordPress Plugin Boilerplate)

Posted on Published June 22, 2019November 25, 2017 by Morgan

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

Debug WordPress

Posted on Published June 22, 2019October 6, 2017 by Morgan

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:

Posts navigation

Previous page Page 1 Page 2
Follow my business progress in your inbox 💌

I’ll be creating more content about starting and running WordPress plugin businesses. You can follow the journey by joining my mail list.

You'll be pinged in the future 🙌

© 2021 Morgan Hvidt