'install-plugin', 'plugin' => $plugin_slug, ), self_admin_url( 'update.php' ) ); $nonce_key = 'install-plugin_' . $plugin_slug; $plugin_install_url = wp_nonce_url( $plugin_install_url, $nonce_key ); ?>


activate it.', 'businessx' ), esc_url( admin_url( 'plugins.php' ) ) ); ?>



add_section( 'businessx_installer', array( 'title' => '', 'description' => sprintf( __( 'If you want to take full advantage of the options this theme has to provide %s, please install and activate the %s plugin.', 'businessx' ), '' . __( '(Front Page sections)', 'businessx' ) . '', '' . __( 'Businessx Extensions', 'businessx' ) . '' ), 'priority' => -10, 'active_callback' => 'businessx_installer_sec_callback', 'capability' => 'install_plugins', ) ); // Add the setting. This is required by WordPress in order to add our control. $wp_customize->add_setting( 'businessx_installer', array( 'capability' => 'install_plugins', 'default' => '', 'sanitize_callback' => '__return_true', )); // Add our control. This is required in order to show the section. $wp_customize->add_control( new Businessx_Installer_Control( $wp_customize, 'businessx_installer', array( 'section' => 'businessx_installer', ) ) ); } } add_action( 'customize_register', 'businessx_installer_register' ); }