Project Type: WordPress Reference

Hook Functions

Core functions for registering and executing WordPress hooks. Source: wp-includes/plugin.php Filter Functions add_filter() Adds a callback function to a filter hook. add_filter( string $hook_name, callable $callback, int $priority = 10,...

Hooks API

The foundation of WordPress extensibility. Hooks allow plugins and themes to modify behavior without editing core files. Since: 0.71 (filters), 1.2.0 (actions) Source: wp-includes/plugin.php, wp-includes/class-wp-hook.php Components Component Description functions.md Core...

WP_HTML_Active_Formatting_Elements

List of active formatting elements for handling mis-nested formatting tags. Source: wp-includes/html-api/class-wp-html-active-formatting-elements.php Since: 6.4.0 Access: private Overview The active formatting elements list handles cases where formatting elements are improperly nested...

WP_Font_Utils

Utility functions for working with fonts. Since: 6.5.0 Source: wp-includes/fonts/class-wp-font-utils.php Access: Private (internal core usage) Description Provides utility functions for font family sanitization, slug generation, schema-based sanitization, and MIME type...

Fonts API

Framework for managing web fonts, font faces, and font collections in WordPress. Since: 6.4.0 (core), 6.5.0 (Font Library/Collections) Source: wp-includes/fonts.php, wp-includes/fonts/ Components Component Description functions.md Core font functions class-wp-font-face.md Generates...

Fonts API Functions

Font Face Output wp_print_font_faces() Generates and prints @font-face styles for given fonts or theme.json fonts. wp_print_font_faces( array $fonts = array() ): void Since: 6.4.0 Parameters: Name Type Description $fonts array[][]...

Fonts API Hooks

Filters font_dir Filters the fonts directory data. apply_filters( 'font_dir', array $font_dir ): array Since: 6.5.0 Parameters: Name Type Description $font_dir array Font directory information $font_dir Structure: [ 'path' => '/var/www/html/wp-content/uploads/fonts',...

WordPress Formatting API Overview

The Formatting API is one of WordPress's largest and most critical subsystems, handling text transformation, sanitization, and escaping throughout the platform. It lives primarily in wp-includes/formatting.php (6,304 lines) and wp-includes/kses.php...

WordPress Formatting API Functions

Escaping Functions Escaping functions make data safe for output in a specific context. Always escape on output. esc_html() Escapes a string for safe output in HTML content. function esc_html( $text...

WordPress Formatting API Hooks

Escaping Filters esc_html Filters a string after HTML escaping. apply_filters( 'esc_html', string $safe_text, string $text ) Parameters: $safe_text - The escaped text $text - The original text Example: add_filter( 'esc_html',...

← Back to Chubes.net