All features
Cherry Blossom feature
Framework Traits: WordPress trait
Combines hook and transient helpers with plugin-availability checks.
Combines hook and transient helpers with plugin-availability checks.
Capabilities and extension points
Checks whether a plugin is active by basename or a supported ACF alias.
Testing can be done in two ways: – By known identifier – By path/filename.php (default behaviour)
- param string $plugin Plugin basename, acf, advanced-custom-fields, acf-pro, or advanced-custom-fields-pro.
- return bool True if the resolved plugin is active.
Source reference
This editable reference page is based on the PHP documentation in framework/traits/trait-wordpress.php.