WooCommerce: How to display item meta data in email confirmation using woocommerce_order_item_meta_end

Our store sells software and we’re adding a software voucher code to each purchased. Once the purchase is completed (via the woocommerce_payment_complete hook) we generate the voucher code and add it to each item purchased via wc_add_order_item_meta method. Summarized code: add_filter(‘woocommerce_payment_complete’, ‘add_voucher_code’); function add_voucher_code( $order_id ) { $order = new WC_Order( $order_id ); $items = $order->get_items(); foreach ($items as $item) { for ($i = 1; $i <= $item[‘qty’]; $i++) { $voucher_code = ‘API request based on order information to get voucher code’; wc_add_order_item_meta($item->get_id(), ‘Voucher Code’, $voucher_code); } } } For…

login_headertitle is deprecated since version 5.2.0

I have an issue my friends. when I got to default logn page in wordpress, I see this error: Notice: login_headertitle is deprecated since version 5.2.0! Use login_headertext instead. Usage of the title attribute on the login logo is not recommended for accessibility reasons. Use the link text instead. in /home/xxxxxxx/public_html/wp-includes/functions.php on line 4711 I am using wp veroin 5.2.1 I do not use any plugin to customize login page. I have searched a lot in my own files but no find login_headertitle. I just use the following codes in…

split order after checkout depending on products vendors (WCFM Marketplace)

I need to split order before thank you page view depending on products vendors for example If the order contains 5 products from different vendors – 2 products from X vendor – 2 products from Z vendor – 1 product from S vendor so I need to generate 3 different orders from the original order data and store the generated orders instead of the original order I’m using WCFM marketplace plugin, and I found a premium plugin that doing this but for another multi-vendor plugin Here is what I done…

How to duplicate WooCommerce Product Attributes (Taxonomy)

I am searching for at least an hour a plugin which can clone/duplicate a product attribute which is basically a taxonomy. All i can find are plugins which can only duplicate the categories/tags of the default post type but not of custom post types. Woocommerce products are a custom post type. Because each Attribute (Term) has 60 values (and growing). Basically each term has the same 60 values. So if a new value will be added, i have to do this for each attribute. And if a new attribute will…

Yoast SEO breadcrumbs: how to create a filter that uses the url slug for breadcrumb titles

I know we can manually edit the breadcrumb title for a page or post using Yoast SEO’s breadcrumb functionality. But with thousands of posts and pages on an existing site this isn’t desirable. My brain goes full potato when it comes to stuff other than html and css and maybe hacking some existing PHP code snippets to do my bidding with a lot of trial and error. So that’s why I’m reaching out to the community here. Example: A child page about blue widgets lives at: https://www.example.com/widgets/blue By default I…

Gutenberg on an ACF options page

I would like to be able to add Gutenberg blocks to an ACF options page. I’ve been doing quite a bit of researching but have found nothing. For instance it would be nice to have a footer block and have it rendered/previewed on the « Footer » options page like it would be on the front end. Anyone know if this is possible? Source: https://wordpress.stackexchange.com/feeds