Skip to content

Remove ACF specific function dependencies #2

@xipasduarte

Description

@xipasduarte

ACF uses the meta API provided by WordPress, so we can use get_post_meta() to access the meta field on the default action that adds the custom fields to the API response.

https://github.com/csrui/wp-construct-plugin/blob/master/lib/ContentType/RestFieldsRegistry.php#L57

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions