Error uploading plugin zip file

The top of your Plugin’s main PHP file must contain a standard Plugin information header. This header lets WordPress recognize that your Plugin exists, add it to the Plugin management screen so it can be activated, load it, and run its functions; without the header, your Plugin will never be activated and will never run. … Read more

WooCommerce: Change default country on the cart page [closed]

I have same issue, but need to set country to US, here is how I fix it: add_action(‘woocommerce_add_to_cart’ , ‘set_country_befor_cart_page’); function set_country_befor_cart_page(){ WC()->customer->set_billing_country(‘US’); WC()->customer->set_shipping_country(‘US’); } Hope it will help.

WP-Markdown treating java generics like HTML tags

I was trying to fix this for the longest time as well. It seems that the problem is not the rendering, but the editor – when you save, it updates your post. I found a checkbox under Settings -> Writing called “WordPress should correct invalidly nested XHTML automatically”. Unchecking this checkbox fixed the problem.

WooCommerce & Caching [closed]

Read the WooCommerce docs. I’ve run in to this before, and the following pages cannot be cached: Cart My Account Change Password Edit Address View Order Checkout Pay Order Received

Implement plugins as part of a theme

First, I would recommend against it. I have a package of plugins that I use on almost all of our websites (both public and internal plugins)… and plugins should really remain plugins. Deploying a package of plugins is not hard or time consuming and only needs to be done once per project. By integrating them … Read more

Best Practice: Remove data on deactivation or uninstall?

Remove data only on uninstall. Deactivating plugins can be done by mistake or in order to troubleshot some other problem and you don’t want to make the plugin users to config everything again in this situation. Think about your PC software, does it delete its data when it is being closed and become inactive? no, … Read more