Add a custom class name to WordPress body tag?
Add a custom class name to WordPress body function my_plugin_body_class($classes) { $classes[] = ‘foo’; return $classes; } add_filter(‘body_class’, ‘my_plugin_body_class’);
Add a custom class name to WordPress body function my_plugin_body_class($classes) { $classes[] = ‘foo’; return $classes; } add_filter(‘body_class’, ‘my_plugin_body_class’);
How to add suffix to child order in woocommerce? add_filter( ‘woocommerce_order_number’, ‘change_woocommerce_order_number’ ); function change_woocommerce_order_number( $order_id ) { if(is_admin()){ $order = wc_get_order( $order_id ); $parent_id
How to add suffix to parent order in woocommerce? add_filter( ‘woocommerce_order_number’, ‘change_woocommerce_order_number’ ); function change_woocommerce_order_number( $order_id ) { if(is_admin()){ $order = wc_get_order( $order_id ); $parent_id
How to make elementor column clickable? Add the following code to Functions.php use ElementorControls_Manager; use ElementorElement_Base; /** * Main plugin class * * @return void
Get child of parent categories in wordpress rest api and json method: Paste below code in functions.php /* get sub categories */ add_action( ‘rest_api_init’, function
Get only parent categories wordpress rest api and json method: Paste below code in functions.php /* parent categories via rest api */ add_action( ‘rest_api_init’, function
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
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
precisediff in hh:mm:ss format with moment.js This approach will work ONLY when the total duration is less than 24 hours: var now = “04/09/2013 15:00:00”;
Last characters of a string const id = "ctl03_Tabs1"; console.log(id.slice(id.length – 5)); //Outputs: Tabs1 console.log(id.slice(id.length – 1)); //Outputs: 1
Account
Site
Copyright © 2022 AmitpalSingh.com, doing business as Woocoders. All Rights Reserved.
Got a Question? Check out our FAQ Section.