add_filter ( 'woocommerce_coupon_is_valid' , 'check_multi_coupon_code_by_kanha' , 10 , 3 ); function check_multi_coupon_code_by_kanha …
Read more$coupon_code = 'UNIQUECODE' ; // Code $amount = '10' ; // Amount $discount_type = 'fixed_cart' ; // Type: fixed_cart, percent…
Read more//Apply discount coupon automatically in woocommerce add_action ( 'woocommerce_before_cart_table' , 'discount_when_quantity_greater_than_10&…
Read more/* If it is true then it's an Ajax call */ if ( defined ( 'DOING_AJAX' ) && DOING_AJAX) { //write your code here }
Read moreIn order to copy user roles to the different website you’d need to copy/paste the data from wp_user_roles option in the wp_options table in the data…
Read moreIt seems like, you may have removed the .git folder. In that case you can try git rm --cached folderpath/ -f where folderpath is the path from where yo…
Read moresudo sysctl fs.inotify.max_user_watches=524288 sudo sysctl -p
Read moreadd_action( 'rest_api_init' , function ( ) { register_rest_route( 'kanha/v1' , '/get-all-orders' , [ 'methods' =…
Read morereference https://techvblogs.com/blog/install-multiple-php-versions-on-ubuntu-22-04
Read morehttps://github.com/KanhaHelp/wordpress-with-docker
Read moreTo install the latest version of the Postman desktop app, you need to install it via the Snap using the following commands. Install Postman in Debian an…
Read moremoment(1627451151130).format('MMMM D, YYYY') 'July 28, 2021'
Read moreOpen alt + f2 (fn+alt+f2) then kill the app by the command
Read morenpm-check-updates The tool we are going to use is called npm-check-updates . You can find a full list of commands and flags here , but the quick steps…
Read more# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. # dependencies **/node_modules /.pnp .pnp.js # testing /coverage # p…
Read more