Dplugins Logo
  • Code Snippets
  • Code Request
  • woocommerce product custom gallery slider example

    woocommerce product custom gallery slider example

    Here is an example code snippet for creating a custom gallery slider for WooCommerce products: In this example, we are using the woocommerce_product_thumbnails action hook to add a custom gallery slider to the product page. We are using the Owl Carousel jQuery plugin to create the slider and enqueueing its required CSS and JS files.…

    Category: Oxygen, WooCommerce
    Sumit Singh

    Sumit Singh

    Tags: hook, single product, Tips, WooCommerce
  • Find all functions hooked to a WordPress action / filter

    Quite simply add this near the apply_filters or do_action.

    Category: WordPress
    Sumit Singh

    Sumit Singh

    Tags: hook
  • Disable WooCommerce Marketing menu

    Disable WooCommerce Marketing menu

    Add the following PHP code snippet in your favorite code manager plugin like Scripts organizer and set it to load on front end

    Category: Oxygen, WooCommerce
    Sumit Singh

    Sumit Singh

    Tags: hook, WooCommerce, WP Admin
  • Cart count / total price

    Cart count / total price

    With this example you can easily add cart count or total price anywhere on your webshop. This code uses woocommerce add to chart hook that is executed every time when you put something into basket. You just need to add this code anywhere where you wish to show total price. And this snippet will execute…

    Category: WooCommerce, WordPress
    Davor Mlinarić

    Davor Mlinarić

    Tags: hook, WooCommerce
  • Add text after price

    Add text after price

    Sometimes is usefull to add additional text under the product price. With this hook you can easily show additional text just under the price. You can use ScriptOrganiser, CodeSnippets or any other similar plugin. This hook could be extended to show message only on specific products. In this case you will need to add ID’s…

    Category: WooCommerce, WordPress
    Davor Mlinarić

    Davor Mlinarić

    Tags: hook
  • Oxygen Hook. Add code after body is opened

    Oxygen Hook. Add code after body is opened

    Oxygen does not support WordPress wp_body_open() and if you need to integrate Google Tag manager it requires two code parts. 1st part is Inside Head and 2nd is inside Body. Lucky Oxygen provides hook that is called: ct_before_builder. If you are using Scripts Organizer , Code Snippets or any other functionality plugins this script will…

    Category: Oxygen, WordPress
    Marko Krstić

    Marko Krstić

    Tags: after_body, hook

3rd party plugins actions admin after_body archive Blocks build Category config core CPT CSS Custom Post Developer development Front End hook Image img include js livereload load styles loop Must Have notice npm Oxygen plugins publish release repeater script scss settings page share single product Taxonomy themes Tips webpack WooCommerce wordpress WP Admin WPML

Proudly Powered by DPlugins