In case you have a website where each post or a custom post type, requires a featured image, there is a chance, the client might ignore that when publishing. In this tutorial, we’ll learn how to disable the publish/update button if there is no featured image added.
Read MoreTag: javascript
Ultimate Guide for JavaScript in Elementor Widgets
Elementor Widgets are a great way to build your landing pages when using Elementor. Mostly, widgets are done through PHP but if you need some of the functionality on the front end or for the user editing the page, you will need to use JavaScript.
In this tutorial, we will learn about all the methods you can use with their JavaScript widget model and check for examples of the same.
Read MoreGutenberg Components: Modal
Modals are really common in any user interface. It can be used for alerts, to render additional information or provide a way to enter data.
In this tutorial, we will learn about the Gutenberg Component Modal and see what options does it provides to us.
Read MoreHow to use the @wordpress/hooks package in JavaScript Apps
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.
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.