Disable Virtual and Downloadable Products

Sometimes clients are looking for a solution to completely disable downloadable (and virtual) products functionality. And in this tutorial I will show you how exactly you can do it and even without using WordPress plugins.

There are 4 steps:

  1. Remove downloads endpoint.
  2. Remove checkboxes from the admin edit product pages.
  3. Remove dropdown options from Product Type Filter.
  4. Remove downloadable product permissions meta box from edit order pages.

I will describe every step in details.

Get Plan Statuses in WooCommerce Memberships

Creating Custom Sidebars with PluginSidebar

Creating Gutenberg sidebars and panels with fields inside of them is a brand new way of working with WordPress metadata. I am sure that the default way of creating meta boxes will stay with us for a long time as a backward compatibility, but believe me that working with the content using blocks and sidebars is a much more pleasant way than trying to configure everything in old-fashioned meta boxes.

So, what we are going to do in this tutorial?

Usually I like to show practical examples in my tutorials. And here is the one – I don’t use any SEO plugins on my projects, because I think they are too heavy and bloated with code. But if you’re familiar with SEO, you know that it is important to add unique titles and meta descriptions for your website pages. And probably you would like to hide some of them from indexing with robots meta tag.

create custom Gutenberg plugin sidebars
Our Gutenberg sidebar has 3 fields here – one text field, one textarea field and one toggle.

Please also stay away from tutorials where it is recommended to work directly with WordPress REST API and use wp.apiRequest etc. That’s not a correct way of creating Gutenberg sidebars.

Using Gutenberg Color Palette for a Custom Block

How to Create Inspector Controls for a Custom Gutenberg Block

Publish Posts to Multiple Blogs in WordPress Multisite

There are actually two ways of organising shared content between sites in Multisite Network:

  1. Post to multiple sites at once and then synchronising any changes, I will show show in this tutorial how to do it with code or with a plugin.
  2. Indexing content and then having access to it anytime from any site, my another plugin will help you with that.

Creating Editable Gutenberg block if You Don’t Know JavaScript Deeply