logoscon / acf-plus
Common utility classes for the Advanced Custom Fields (Pro) plugin on WordPress.
Installs: 22 941
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 13
Forks: 1
Open Issues: 1
Requires (Dev)
- 10up/wp_mock: dev-master
- apigen/apigen: 4.0.0-RC4
- dangoodman/composer-for-wordpress: ^1.0
This package is not auto-updated.
Last update: 2024-10-24 00:28:44 UTC
README
Common utility classes for the Advanced Custom Fields (Pro) plugin on WordPress.
Usage
Field Groups
Extend the \logoscon\ACF\Group
class, defining the _register()
method:
class My_Group extends \logoscon\ACF\Group { protected function _register() { // My field group definition. } }
This method should contain (at the very least) the code exported by Advanced Custom Fields, although you're encouraged to improve its maintainability. To help make code clearer, the following helper methods are provided:
_field_tab
_location_is
_location_in
(see\logoscon\ACF\Rule\Operator\In
)_location_are
Support for the IN
operator in location rules
\logoscon\ACF\Rule\Operator\In::register();
Changelog
1.1.0
- Multiple location rule builder for equality checks.
1.0.0
- Initial release.