[Components] Return Function dynamic tag not working in Link property


The “Return Function” dynamic tag does not work when used in a static source of a Component Link property. Instead of calling the function, the name of the function is added to the URL. See screenshots below.


Link on the frontend:

Step-by-step reproduction instructions:

  1. Open the Post Editor/Site Editor
  2. Create a component with a Link property
  3. Connect the link property to a link element inside the component
  4. Set the component’s link to static and try to use the “Return Function” dynamic tag.


Set the link directly to the element instead of using a Component Link property.

Environment info

  • WordPress version: 6.4
  • Cwicly Plugin version: 1.3.4

I guess this is a duplicate of Functions are not evaluated in component link setting

And it definitely needs to be fixed, please.