Tuesday, December 13, 2022
HomeWordPress DevelopmentIncluding Plugins Constructed With React To WordPress

Including Plugins Constructed With React To WordPress


I’m making an attempt to create customized plugins for WordPress utilizing React. For context, I’ve been following this video: https://www.youtube.com/watch?v=NKqogVcqDHA

Operating WordPress regionally on XAMPP, I’ve added two new plugins:

--wp-content
----plugins
---+added-plugin-one
---+added-plugin-two

Every added plugin has the identical primary construction – they’re React apps which were added following the directions within the video (within the Boilerplate Plugin part).

Once I add the plugins and run npm run construct, I can see them on the Plugins menu on the WordPress Dashboard. I can activate each plugins from this display screen as effectively (see screenshot of plugins menu with “Brad’s Boilerplate Block Plugin” and “Jon’s Boilerplate Block Plugin” activated):enter image description here

Nevertheless, once I go to edit a put up and attempt to insert these plugins as blocks, I solely see one of many plugins:enter image description here

I can deactivate both one and see the opposite one within the put up editor, however I wish to see each plugins and be capable to use each of them. Is there a cause why I would solely be capable to use one in all them and never each? Thanks for any solutions.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments