API Documentation
Table of Contents
Namespaces
Constants
- DEFAULT_FEATURED_IMAGE : string = 'assets/images/pages/home-hero.webp'
- Default fallback featured IMAGE asset PATH.
- DEFAULT_SITE_LOGO : string = 'assets/images/logo/site-logo.webp'
- Default fallback site LOGO asset PATH.
- DEFAULT_SITE_LOGO_HEIGHT : int = 56
- Default fallback site LOGO pixel HEIGHT.
- DEFAULT_SITE_LOGO_WIDTH : int = 56
- Default fallback site LOGO pixel WIDTH.
- FORCE_DEFAULT_IMAGE : bool = false
- Flag to force default fallback IMAGE rendering during testing.
- FORCE_DEFAULT_SITE_LOGO : bool = false
- Flag to force default site LOGO rendering during testing.
- ICON_REGISTRATION_DIR : string = 'assets/icons'
- Relative path to theme SVG icon directory.
- THEME_SLUG : string = 'lumina'
- Static slug handle for theme SVG icon collection registration.
Functions
- lumina_theme_support() : void
- Sets up theme defaults and registers support for various WordPress features.
- lumina_load_styles() : void
- Enqueues core styles, theme mode variations, interactive scripts, and versioned assets.
- lumina_load_block_styles() : void
- Load INDIVIDUAL Block CSS styles on 'init' (Applies to Front-End and Editor)
- lumina_template_part_areas() : array<string|int, mixed>
- Custom Template Part Areas
- lumina_image_sizes() : array<string|int, mixed>
- Image Size Chooser Options
- lumina_body_open() : void
- Anchor Tags for Scroll-To-Top
- lumina_enqueue_style() : void
- Helper utility function to enqueue CSS styles with asset file versions Accepts a relative theme path (e.g. 'assets/css/theme-styles.css')
- lumina_get_active_theme_mode() : string
- Detect active theme canvas mode ('dark' vs 'light') from global settings or calculated luminance.
Constants
DEFAULT_FEATURED_IMAGE
Default fallback featured IMAGE asset PATH.
public
string
DEFAULT_FEATURED_IMAGE
= 'assets/images/pages/home-hero.webp'
DEFAULT_SITE_LOGO
Default fallback site LOGO asset PATH.
public
string
DEFAULT_SITE_LOGO
= 'assets/images/logo/site-logo.webp'
DEFAULT_SITE_LOGO_HEIGHT
Default fallback site LOGO pixel HEIGHT.
public
int
DEFAULT_SITE_LOGO_HEIGHT
= 56
DEFAULT_SITE_LOGO_WIDTH
Default fallback site LOGO pixel WIDTH.
public
int
DEFAULT_SITE_LOGO_WIDTH
= 56
FORCE_DEFAULT_IMAGE
Flag to force default fallback IMAGE rendering during testing.
public
bool
FORCE_DEFAULT_IMAGE
= false
FORCE_DEFAULT_SITE_LOGO
Flag to force default site LOGO rendering during testing.
public
bool
FORCE_DEFAULT_SITE_LOGO
= false
ICON_REGISTRATION_DIR
Relative path to theme SVG icon directory.
public
string
ICON_REGISTRATION_DIR
= 'assets/icons'
THEME_SLUG
Static slug handle for theme SVG icon collection registration.
public
string
THEME_SLUG
= 'lumina'
Functions
lumina_theme_support()
Sets up theme defaults and registers support for various WordPress features.
lumina_theme_support() : void
lumina_load_styles()
Enqueues core styles, theme mode variations, interactive scripts, and versioned assets.
lumina_load_styles() : void
lumina_load_block_styles()
Load INDIVIDUAL Block CSS styles on 'init' (Applies to Front-End and Editor)
lumina_load_block_styles() : void
lumina_template_part_areas()
Custom Template Part Areas
lumina_template_part_areas(array<string|int, mixed> $areas) : array<string|int, mixed>
Parameters
- $areas : array<string|int, mixed>
-
Existing template part areas.
Return values
array<string|int, mixed> —Modified template part areas.
lumina_image_sizes()
Image Size Chooser Options
lumina_image_sizes(array<string|int, mixed> $sizes) : array<string|int, mixed>
Parameters
- $sizes : array<string|int, mixed>
-
Existing image sizes.
Return values
array<string|int, mixed> —Merged image sizes.
lumina_body_open()
Anchor Tags for Scroll-To-Top
lumina_body_open() : void
lumina_enqueue_style()
Helper utility function to enqueue CSS styles with asset file versions Accepts a relative theme path (e.g. 'assets/css/theme-styles.css')
lumina_enqueue_style(string $relative_path[, array<string|int, mixed> $custom_deps = array() ]) : void
Parameters
- $relative_path : string
-
Relative path to CSS file.
- $custom_deps : array<string|int, mixed> = array()
-
Optional custom dependencies.
lumina_get_active_theme_mode()
Detect active theme canvas mode ('dark' vs 'light') from global settings or calculated luminance.
lumina_get_active_theme_mode() : string
Return values
string —Active theme mode ('dark' or 'light').