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

Assets enqueued too early #3

Open
codente opened this issue Dec 2, 2024 · 0 comments · May be fixed by #4
Open

Assets enqueued too early #3

codente opened this issue Dec 2, 2024 · 0 comments · May be fixed by #4

Comments

@codente
Copy link
Contributor

codente commented Dec 2, 2024

From a developer:

In the /classes/class-fl-custom-modules-example-loader.php file, on lines 30-31, you have this:

// Enqueue custom field assets.
add_action( 'init', CLASS . '::enqueue_field_assets' );

However, when you get down to the enqueue_field_assets function (lines 55-57, you have this:

if ( ! FLBuilderModel::is_builder_active() ) {
return;
}

However, is_builder_active() isn't available yet, since that function was loaded on init, so the enqueue_field_assets function will always return at that point and never enqueue the field assets that are placed a couple lines later.

@codente codente linked a pull request Dec 2, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant