Core class for managing all user roles and their capabilities. Since: 2.0.0 Source: wp-includes/class-wp-roles.php Overview WP_Roles is a singleton-like registry that manages all roles available on a site. It handles...
Core class for querying users with flexible filtering, sorting, and pagination. Since: 3.1.0 Source: wp-includes/class-wp-user-query.php Overview WP_User_Query provides a powerful interface for retrieving users from the database with support for...
Core class representing a WordPress user with their data and capabilities. Since: 2.0.0 Source: wp-includes/class-wp-user.php Overview WP_User represents an individual user with their profile data, roles, and capabilities. It provides...
Complete reference for WordPress theme-related functions. Theme Information Functions wp_get_theme() Gets a WP_Theme object for a theme. wp_get_theme( string $stylesheet = '', string $theme_root = '' ): WP_Theme Parameters: $stylesheet...
Complete reference for theme-related action hooks and filters. Template Loading Actions template_redirect Fires before determining which template to load. do_action( 'template_redirect' ); Use Cases: Redirects based on query conditions Early...
The Themes API provides comprehensive functionality for theme management, template loading, global styles, and the transition from classic to block-based themes. Architecture WordPress themes operate through several interconnected systems: ┌─────────────────────────────────────────────────────────────────┐...
Source: wp-includes/update.php Core Update Functions wp_version_check() Checks WordPress version against the newest version available on WordPress.org. wp_version_check( array $extra_stats = array(), bool $force_check = false ) Parameters: $extra_stats (array) -...
Source: wp-includes/update.php Filters core_version_check_locale Filters the locale requested for WordPress core translations. apply_filters( 'core_version_check_locale', string $locale ) Parameters: $locale (string) - Current locale from get_locale() Returns: string - Locale code...
These classes handle the processing of theme.json configuration files, providing a structured way to manage global styles and settings. WP_Theme_JSON Class Encapsulates processing of structures that adhere to the theme.json...
The WP_Theme class encapsulates theme data and provides methods for accessing theme information, files, and configuration. Class Overview final class WP_Theme implements ArrayAccess { // Properties public bool $update =...