API reference

Template helpers

Read native WordPress values with defaults and nested option paths.

#voxycure_get_field()

PHP
voxycure_get_field(string $key, ?int $postId = null, mixed $default = null): mixed
ArgumentMeaning
$keyRegistered meta key.
$postIdDefaults to get_the_ID().
$defaultReturned when no post/value exists.

#voxycure_get_option()

PHP
voxycure_get_option(string $key, mixed $default = null): mixed

Dot notation traverses nested arrays and objects, for example theme_settings.branding.logo.

#voxycure_registry()

Returns the shared Voxyframe\Core\Registry. Prefer the registration action so other extensions can predict the load order.

Framework version2.0.0
PHP requirement8.0+
Documentation updatedAugust 2026