NO BUG: {do_action:woocommerce_archive_description} does not work

I added this Do action to my Archive page as described in the documentation.
Unfortunately, no product category description is displayed.
{do_action:woocommerce_archive_description}

At least that’s how I understand this action when reading the documentation.

But if I use the following, it is displayed.
{archive_description}

This is what it looks like in the builder
image

And so on the frontend – normally, the description should now be displayed twice. But it isn’t, because Do Action doesn’t work here.

This is how the category setting looks like

Am I misunderstanding this Do Action?

Hi Tobias,
Yes, I think there is a misunderstanding. You can think of the Woo template hooks as “locations” within the template where, for example, third-party plugins can “hook in” to add code.

Here is a visual example of what I mean:

{do_action:woocommerce_archive_description} is therefore the place intended for the archive description, but it doesn’t output anything by default. If you want to output the description in the Bricks template, the {archive_description} tag is the right choice.

Best regards,
timmse

1 Like

Thank you very much @timmse
Ill check the link.