Open douglasscriptore opened 2 years ago
How do I get attributes from the shortcode within React?
Example: [my-shot-code view="main"]
@douglasscriptore Shortcodes are rendered via PHP as regular DOM elements inside WP. You will have to assign those attributes to DOM element, and then you can get them with document.querySelector.
document.querySelector
How do I get attributes from the shortcode within React?
Example: [my-shot-code view="main"]