Skip to content

Undefined OPB_URL #2

@iniznet

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

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