Project Type: WordPress Reference

JavaScript Packages

Core @wordpress/* JavaScript packages bundled with WordPress. Source: wp-includes/js/dist/ Packages Package Description blocks.md Block registration and serialization block-editor.md Block editor components components.md Reusable UI components data.md Redux-like data store element.md...

@wordpress/scripts

Build tooling for WordPress block development. CLI Commands Run via wp-scripts (installed by @wordpress/scripts). wp-scripts start — dev build with watch wp-scripts build — production build wp-scripts lint-js — ESLint...

@wordpress/url

URL utilities for query strings and path handling. Key APIs addQueryArgs( url, args ) Adds/updates query arguments and returns a new URL. url string args object (key → value) getQueryArg(...

Internals

Internal WordPress classes not intended for direct plugin use. Source: wp-includes/class-wp-*.php Components Component Description class-wp-meta-query.md Meta query SQL generation class-wp-tax-query.md Taxonomy query SQL generation class-wp-textdomain-registry.md Translation file registry class-wp-token-map.md Token...

@wordpress/api-fetch

HTTP client for WordPress REST API with middleware support. apiFetch( options ) Performs a request and returns a Promise. options fields: path (REST path, e.g. /wp/v2/posts) url (absolute URL override)...

@wordpress/block-editor

React components and hooks for building block editor UIs. Key APIs useBlockProps( props? ) Returns props required for block wrapper elements. Typically spread onto the block’s root element. Accepts additional...

@wordpress/blocks

Block registration and serialization utilities. Key APIs registerBlockType( name, settings ) Registers a block type. name string (namespace/block) settings object title, description, category, icon, keywords attributes: attribute schema supports: support...

@wordpress/components

UI component library used across WordPress admin and editor. Common Components Button Interactive button component. Common props: variant: primary | secondary | tertiary isPrimary, isSecondary, isTertiary (legacy) isBusy, isDestructive, isSmall...

@wordpress/data

State management for WordPress applications. Provides a registry of stores with actions, selectors, resolvers, and controls. Core Concepts Store: A named namespace with reducers, actions, selectors, controls, and resolvers. Selectors:...

WP_URL_Pattern_Prefixer

Prefixes URL patterns with base paths for WordPress installations. Source: wp-includes/class-wp-url-pattern-prefixer.php Since: 6.8.0 Access: private Overview This class handles URL pattern prefixing for WordPress sites that may be installed in...

← Back to Chubes.net