Tutorials and code snippets
Fixes and how-tos for WordPress, WooCommerce, JavaScript, PHP and Cordova, written while building client projects.
Dynamically change an input field's placeholder (angular js)
Here’s how you can change the placeholder dynamically, change div inner text and div inner html: Angular js help you in number of applications. I use this…
How to set radio option checked onload with jQuery
You can assume, that name is unique and all radio in group has the same name. Then you can use jQuery support like that Method 1 : Target by .is (long)…
precisediff in hh:mm:ss format with moment.js
precisediff in hh:mm:ss format with moment.js This approach will work ONLY when the total duration is less than 24 hours: If you have 24 hours or more,…
How can I extract a number from a string in JavaScript?
Extract a number from a string
How can I get last characters of a string?
Last characters of a string
How to change theme or header or status bar color in cordova?
Add the following plugin: It is also possible to install via repo url directly ( unstable ) config.xml StatusBarOverlaysWebView (boolean, defaults to…
Android Studio error "Installed Build Tools revision 31.0.0 is corrupted"
First of all, I faced this issue in Android Studio 4.2.2 and you do not need to downgrade the SDK build tool from 31 to 30 or change compile SDK version.…
Removing autocomplete input background colour for Chrome
Removing autocomplete input background colour for Chrome
WooCommerce check and redirect to login before checkout
Checkout Redirect if not logged in
bxSlider current slide number display / total slides display
bxSlider current slide number display / total slides display
Slide number and total number of slides bx slider
Slide number and total number of slides bx slider. bxSlider current slide number display / total slides display
get_endpoint_title($endpoint) should be compatible with WC_Query::get_endpoint_title($endpoint, $action = '')
That should fix the problem temporarily for you until you have the updated WC Subscription version installed