Remove a Kirki Section or Kirki Panel with a plugin
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Remove a Kirki Section or Kirki Panel with a plugin’ is closed to new replies.