Js Packages
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...
@wordpress/scripts
Build tooling for WordPress block development. CLI Commands Run via wp-scripts (installed by @wordpress/scripts). wp-scripts start — dev build with...
@wordpress/url
URL utilities for query strings and path handling. Key APIs addQueryArgs( url, args ) Adds/updates query arguments and returns a...
@wordpress/i18n
Internationalization utilities for translating strings. Key APIs __( text, domain? ) Translate a string. _x( text, context, domain? ) Translate...
@wordpress/blocks
Block registration and serialization utilities. Key APIs registerBlockType( name, settings ) Registers a block type. name string (namespace/block) settings object...
@wordpress/components
UI component library used across WordPress admin and editor. Common Components Button Interactive button component. Common props: variant: primary |...
@wordpress/data
State management for WordPress applications. Provides a registry of stores with actions, selectors, resolvers, and controls. Core Concepts Store: A...
@wordpress/dom-ready
Runs a callback when the DOM is ready. API domReady( callback ) Invokes callback once the document is ready. Equivalent...
@wordpress/element
React-compatible element abstraction used throughout WordPress. Core APIs createElement( type, props, ...children ) Creates a React element. Equivalent to React.createElement....
@wordpress/hooks
Hook system for filters and actions in JavaScript. Filters addFilter( hookName, namespace, callback, priority? ) Registers a filter. hookName string...
@wordpress/api-fetch
HTTP client for WordPress REST API with middleware support. apiFetch( options ) Performs a request and returns a Promise. options...
@wordpress/block-editor
React components and hooks for building block editor UIs. Key APIs useBlockProps( props? ) Returns props required for block wrapper...