Skip to content

Instantly share code, notes, and snippets.

@mrkdevelopment
Created July 29, 2022 06:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrkdevelopment/7b64e3638c911a4b15f8ec8d5ebcbf9e to your computer and use it in GitHub Desktop.
Save mrkdevelopment/7b64e3638c911a4b15f8ec8d5ebcbf9e to your computer and use it in GitHub Desktop.
Display WooCommerce data for Attributes in the meta area of template
add_action('woocommerce_product_meta_start',function(){
global $product;
echo wc_display_product_attributes( $product );
});
@mustafavak
Copy link

thanks, this code work perfect.

@mustafavak
Copy link

let me know if you have more functions for woocommerce which can be helpful to me

@mrkdevelopment
Copy link
Author

All my WooCommerce tips can be found here - https://www.mrkwp.com/category/tutorials/woocommerce-tips/

Im adding to it all the time. My youtube channel may also be a good resource for you.

Thanks for the feedback - glad it all worked for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment