After WooCommerce-Update fucntion not working anymore

Finally did it. With the update of WooCommerce, which I assumed, the syntax of the set price did change. Function now looks like this: add_action( ‘woocommerce_before_calculate_totals’, ‘calc_ferienspiele_discount’ ); function calc_ferienspiele_discount( $cart_object ) { global $woocommerce; $items = $woocommerce->cart->get_cart(); $x=0; $custom_price = 140; // This will be your custome price foreach ( $cart_object->cart_contents as $key => … Read more

Pause form submissions while upgrading plugins

There are a couple of ways to check if wordpress is actively running the core upgrade process. First, you could check the WP_INSTALLING constant, or use the wp_installing() function. WordPress will also utilize a .maintenance or maintenance.php file if you’d like to present any custom messages to users while the upgrade process is happening. Here … Read more

Can Hosting affect a plugin from working properly?

Theoretically, sure. Differences in the PHP and MySQL versions could certainly lead to different behavior. How likely it is that it only shows in settings not being saved, that is another question. Do you get any messages in the browser’s console? Any Ajax requests ending in errors in the Network tab? Is there anything in … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)