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

taxonomies defined by poet aren't available to acf-composer #59

Closed
SergiArias opened this issue Apr 11, 2024 · 0 comments
Closed

taxonomies defined by poet aren't available to acf-composer #59

SergiArias opened this issue Apr 11, 2024 · 0 comments

Comments

@SergiArias
Copy link

I am building a block with acf that depends on some terms defined in poet. But they aren't available.

I changed priority of init to 4 and it works, but I don't know if it's the correct approach.

        add_filter('init', function () {
            foreach ($this->modules as $module) {
                if ($module instanceof AbstractModule) {
                    continue;
                }

                new $module($this->app, $this->config);
            }
        }, 4);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant