-
Introducing My WooCommerce Product Table Plugin π
Over the last few months, Iβve been working deeply with WooCommerce β especially in scenarios where product catalogs are large, complex, and performance-sensitive. One recurring problem stood out: π The default WooCommerce grid layout breaks down when users need speed, comparison, and bulk actions. So I built something to solve that properly. Today, Iβm open-sourcing…
-
Mastering the WordPress Abilities API: Fine-Grained Control for Modern WordPress Development
The WordPress Abilities API provides a standardized way to register and discover distinct units of functionality within a WordPress site. These units, called βAbilitiesβ, represent specific actions or capabilities that components can perform, with clearly defined inputs, outputs, and permissions. It acts as a central registry, making it easier for different parts of WordPress, third-party…
-
What is the difference between select(‘core’) vs apiFetch, and when to use which?
This is a very important architectural decision in Gutenberg β and honestly, many developers misuse both. Letβs break it down in a practical, real-world way so you can decide like a tech lead π π§ select(‘core’) vs apiFetch β Whatβs the Difference? Feature select(‘core’) apiFetch Data Source WP Data Store (core-data) Direct REST API Reactivity…
-
Mastering select(‘core’) in WordPress Gutenberg (With Simple Examples)
When working with Gutenberg blocks, accessing WordPress data efficiently is essential. One of the most commonly used tools for this is select(‘core’). In this guide, weβll break it down in a simple and practical way, with examples you can use immediately. π What is select(‘core’)? In Gutenberg: π In simple terms: select(‘core’) lets you fetch…
-
A Practical Guide to Fetching Custom Post Types and Taxonomies Using select(‘core’) in Gutenberg
β 1. Fetch Custom Post Type (product) Just replace ‘post’ with ‘product’: β 2. Fetch Taxonomy (product_cat) For taxonomies, entity type changes from ‘postType’ β ‘taxonomy’ π 3. Fetch BOTH (Best Practice β Single useSelect) π This is what you should do in production (avoids multiple subscriptions) π 4. Filter Products by Category (Very Useful)…
