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

Undefined OPB_URL #2

Open
iniznet opened this issue Sep 18, 2022 · 0 comments · May be fixed by #3
Open

Undefined OPB_URL #2

iniznet opened this issue Sep 18, 2022 · 0 comments · May be fixed by #3

Comments

@iniznet
Copy link

iniznet commented Sep 18, 2022

After taking some looks, it seems load_option_builder() doesn't invoked when trying to integrate the library into the theme since after_setup_theme hook already fired beforehand. I suppose changing the hook into init would fix the issue.

/**
* Load option builder
*/
add_action( 'after_setup_theme', array( $this, 'load_option_builder' ), 1 );

public function boot()
{
    if (is_admin()) {
        new ThemeSettings();
    }
}
@iniznet iniznet linked a pull request Sep 18, 2022 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