alias python = python3
Read moreOpen a Terminal Check by below command xrandr -q | grep " connected" Check by the above command if the output looks like the below then go to…
Read more# Needed to the function "deactivate_plugins" works include_once (ABSPATH . 'wp-admin/includes/plugin.php' ); add_action ( 'plugin…
Read morefunction kanha_change_logout_url_by_user_roles () { $current_user = wp_get_current_user (); $role_name = $current_user -> roles [ 0…
Read moreadd_action ( 'wp_logout' , 'kanha_change_logout_url' ); function kanha_change_logout_url ( $redirect_url ) { wp_safe_redirect …
Read moreadd_action ( 'init' , 'kanha_redirect_login_page' ); function kanha_redirect_login_page ( $redirect_url ) { global $pagenow ; …
Read morenavigator . getBattery (). then (( battery ) => { console . log ( `Battery ${ battery . level * 100 } %` ); console . log ( `Charging status…
Read more$otp = rand ( 100000 , 999999 ); // $result = otpl_send_otp_test($email, $otp); // print_r($result); $otp_message = '<table width=&q…
Read moreadd_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 more