Project Type: WordPress Reference

Media API Hooks

Actions and filters for media processing, image manipulation, and attachment handling. Source: wp-includes/media.php, wp-includes/class-wp-image-editor.php Image Size Filters editor_max_image_size Filters maximum dimensions for images in the editor. apply_filters( 'editor_max_image_size', int[] $max_image_size,...

WordPress Localization Hooks Reference

Filters and actions for customizing translation behavior. Translation Filters gettext Filters translated text after translation lookup. apply_filters( 'gettext', string $translation, string $text, string $domain ) Parameters: $translation - Translated text...

WordPress Localization (i18n/l10n) API Overview

WordPress internationalization (i18n) and localization (l10n) system for translating text strings. Core Concepts Internationalization (i18n) The process of developing software so it can be localized. In WordPress, this means wrapping...

WordPress Links & URL Functions Reference

Site URL Functions home_url( $path = '', $scheme = null ) Returns the URL for the site's front-end. home_url(); // https://example.com home_url( '/about/' ); // https://example.com/about/ home_url( '/', 'https' );...

WP_Locale Class Reference

Stores translated locale-specific data including weekdays, months, date formats, and text direction. File: wp-includes/class-wp-locale.php Since: WordPress 2.1.0 Global: Available as $wp_locale Overview WP_Locale is instantiated once per request and stored...

WordPress Translation Functions Reference

Complete reference for WordPress internationalization functions. Basic Translation Functions __( $text, $domain = 'default' ) Retrieves the translation of a string. $translated = __( 'Hello World', 'my-plugin' ); Parameters: $text...

@wordpress/dom-ready

Runs a callback when the DOM is ready. API domReady( callback ) Invokes callback once the document is ready. Equivalent to DOMContentLoaded handling. import domReady from '@wordpress/dom-ready'; domReady( () =>...

@wordpress/element

React-compatible element abstraction used throughout WordPress. Core APIs createElement( type, props, ...children ) Creates a React element. Equivalent to React.createElement. render( element, domNode ) Renders an element into a DOM...

@wordpress/hooks

Hook system for filters and actions in JavaScript. Filters addFilter( hookName, namespace, callback, priority? ) Registers a filter. hookName string namespace string (unique key) callback( value, ...args ) priority number...

@wordpress/i18n

Internationalization utilities for translating strings. Key APIs __( text, domain? ) Translate a string. _x( text, context, domain? ) Translate with context. _n( single, plural, number, domain? ) Translate plural...

← Back to Chubes.net