WordPress Plugin API (hooks) are a great way to make your plugins or themes extensible. And that is something that you can use when using PHP. But what if you’re using JavaScript? Maybe you want to make your JavaScript project extensible in a similar way. In this tutorial, we will see how to use those hooks in a React App.
Category: JavaScript
How to create an Asset Manager for WordPress Plugins
Working with assets is pretty simple in WordPress. You have two hooks where you call the enqueue functions and that’s it. But what if you want to load the styles or script on just particular pages or only when a widget or shortcode is called? In this tutorial, we will build an asset manager for your WordPress plugin which you can utilize.
Integrating Gutenberg Blocks in Existing WordPress Plugins
Gutenberg is coming and if your WordPress plugin is using shortcodes, you might consider building Gutenberg blocks out of the shortcodes. In this tutorial, we will not learn about converting shortcodes into Gutenberg blocks. We will learn how we can integrate Gutenberg blocks into your existing plugins.
How to use the WordPress Code Editor in your Plugins or Themes
When you’re developing plugins, themes or even custom solutions, you might provide your clients a way to insert custom scripts or styles. When that comes, we usually tend to use the classic textarea field for that. WordPress ships with their own code editor, so why not enhance the user experience by providing a nice way of editing the code? In this tutorial, you’ll see how to use the WordPress Code Editor and integrate it with your own plugin or themes.
Building a Quiz with React and WordPress REST API: Score Component
The Score Component for our Quiz will render the data that we are retrieving through REST API. We will create a new React Component Score
and add it to our Quiz
Component.