Disable WooCommerce Address State Dropdown

Add this to your functions.php Simply add this code to your functions file and your WooCommerce will now use standard drop downs. add_action( ‘wp_enqueue_scripts’, ‘agentwp_dequeue_stylesandscripts’, 100 ); function agentwp_dequeue_stylesandscripts() { if ( class_exists( ‘woocommerce’ ) ) { wp_dequeue_style( ‘select2’ ); wp_deregister_style( ‘select2’ ); wp_dequeue_script( ‘select2’); wp_deregister_script(‘select2’); } }

How to disable the “Upgrade or Downgrade” button in “My account” of WooCommerce Subscriptions

I have found/made the code that works. Maybe it helps somebody else. /** * Remove the “Upgrade or Downgrade” button from the My Subscription table if user role is “subscriber_plus”. */ add_filter(‘woocommerce_subscriptions_switch_link’, ‘remove_switch_button’, 10, 4); function remove_switch_button($switch_link, $item_id, $item, $subscription) { $user = wp_get_current_user(); if ( in_array( ‘subscriber_plus’, (array) $user->roles ) ) { return ”; … Read more

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