Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add public functions for ease of use #108

Open
theenoahmason opened this issue Oct 30, 2022 · 0 comments
Open

Add public functions for ease of use #108

theenoahmason opened this issue Oct 30, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@theenoahmason
Copy link
Member

theenoahmason commented Oct 30, 2022

  • Add a method to be able to get a parsed field value, by wrapping get_{component}_meta().
  • Add a method to be able to get a field's configuration from outside of the class.
  • This will require either setting the component instances as global, OR setting just the component instance fields as global when they are initialized.

Explorations:

get_field( $component_type, $component_slug, $field_name );
get_field_value( $component_type, $component_slug, $field_name, $object_id );
get_fields( $component_type, $component_slug );
@theenoahmason theenoahmason added the enhancement New feature or request label Oct 30, 2022
@theenoahmason theenoahmason self-assigned this Oct 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant