Support

Account

Home Forums General Issues $wp_registered_sidebars is showing an empty array? Reply To: $wp_registered_sidebars is showing an empty array?

  • Hi @haikbvn

    Have you attempted to debug the code?

    You are assuming that variable such as $wp_registered_sidebars hold the data, but what if they don’t?

    A simple debug test is to dump the varaible:

    
    print_r( $wp_registered_sidebars );