domain = $domain; } /** * Replace the Additional CSS section from Customiz”er with an upgrade nudge. * * @param \WP_Customize_Manager $wp_customize_manager Core customize manager. */ public function register_nudge( \WP_Customize_Manager $wp_customize_manager ) { $nudge_url = $this->get_nudge_url(); $nudge_text = __( 'Purchase the Creator plan to
activate CSS customization', 'jetpack' ); $nudge = new CSS_Customizer_Nudge( $nudge_url, $nudge_text ); $wp_customize_manager->remove_control( 'custom_css' ); $wp_customize_manager->remove_section( 'custom_css' ); $nudge->customize_register_nudge( $wp_customize_manager ); } /** * Get the Nudge URL. * * @return string */ private function get_nudge_url() { return '/checkout/' . $this->domain . '/business'; } }