Support » Plugin: Kirki » Remove a Kirki Section or Kirki Panel with a plugin

  • Resolved ThemeAWESOME

    (@tsquez)



    Hi there,

    I want to add a panel and section to my theme (for upsell purposes) and when the user buys, installs and activates my plugin, I want it to remove the upsell Kirki Panel and Kirki Section.

    I have tried

    $wp_customize->remove_section( 'name_of_section' );

    as well as

    $wp_customize->remove_panel( 'name_of_panel' );

    and neither works.

    In my theme I have a customize_register function that will add the panel and section.

    I also have a new customize_register in my plugin that is used to add additional panels and sections when activated.

    How would I make this happen?

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • NEVERMIND…got it working. It was script priority.

    Thanks anyway. Keep up the good work.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.