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