Add custom attributes to the DOM using add_filter?

Asked on August 29, 2016 in Customization.
I added some custom properties to the widget’s ‘advanced’ section using ‘layerswp_advanced_component_args’.The reason is, that
a) I don’t want to subclass/overwrite the affected widgets
b) I will finally put that modification into an extension, so I can use the feature in other themes as well.

Now I want it to get echoed to the DOM using the same technique, but I couldn’t find any documentation or example for this…

Is there a way to add my attributes to the proper node using a filter or action?


tiptronic Power User
  • Possible Answers to Your Question:

  • 0 Answer(s)