Skip to content

Undefined OPB_URL #2

Description

@iniznet

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();
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions