Uncategorized

Useful SQL queries for wordpress woocommerce Database

Empty table: TRUNCATE TABLE wp_actionscheduler_actions; remove expired sessions from the woocommerce_sessions table optimize sessions records from the woocommerce_sessions table In terms of what you can safely clean, the wp_actionscheduler_actions, and wp_actionscheduler_logs tables could be cleared if you don’t need the historical data. Delete order note comments older than date Delete all comments older than date

Useful SQL queries for wordpress woocommerce Database Read More »

Terra wallet plugin snippets WordPress / Woocommerce

remove cashback notice from shop page. add_filter(‘woo_wallet_product_cashback_html’, ‘__return_false’); disable wallet partial payment. add_filter( ‘woo_wallet_disable_partial_payment’, ‘__return_true’ ); to view the wallet product. add_filter(‘woo_wallet_hide_rechargeable_product’, ‘__return_false’); to disable cashback if coupon applied in an order. add_filter( ‘process_woo_wallet_general_cashback’, ‘process_woo_wallet_general_cashback_callback’, 10, 2 ); if ( ! function_exists( ‘process_woo_wallet_general_cashback_callback’ ) ) { /** * Disable cashback if coupon applied. * *

Terra wallet plugin snippets WordPress / Woocommerce Read More »

How to add a countdown timer in wordpress

There are many ways of adding a countdown timer, you can use a plugin for example, but one of the best ways ive found during the years, is using a service like logwork.com (which is completely free by the way). With logwork, you can generate an HTML snippet that you can use in your site.

How to add a countdown timer in wordpress Read More »

How to add Javascript in WordPress site

1.Simply Add this snippet in your functions.php file 2.Add the JS only in specific pages, this can help, because the code, doesn’t have to execute if not nececary.

How to add Javascript in WordPress site Read More »