ope' => $class_name, ) ); // include preset css classes on the the stylesheet. $styles .= $theme_json_object->get_stylesheet( array( 'presets' ), null, array( 'root_selector' => $class_name . ',' . $class_name . ' *', 'scope' => $class_name, ) ); if ( ! empty( $styles ) ) { wp_enqueue_block_support_styles( $styles ); } return null; } add_filter( 'render_block', '_wp_add_block_level_presets_class', 10, 2 ); add_filter( 'pre_render_block', '_wp_add_block_level_preset_styles', 10, 2 ); turn string The partner code. */ public function get_partner_code( $type ) { switch ( $type ) { case self::AFFILIATE_CODE: /** * Allow to filter the affiliate code. * * @since partner-1.0.0 * @since-jetpack 6.9.0 * @since 2.0.0 * * @param string $affiliate_code The affiliate code, blank by default. */ return apply_filters( 'jetpack_affiliate_code', get_option( 'jetpack_affiliate_code', '' ) ); case self::SUBSIDIARY_CODE: /** * Allow to filter the partner subsidiary id. * * @since partner-1.0.0 * @since 2.0.0 * * @param string $subsidiary_id The partner subsidiary id, blank by default. */ return apply_filters( 'jetpack_partner_subsidiary_id', get_option( 'jetpack_partner_subsidiary_id', '' ) ); default: return ''; } } /** * Resets the singleton for testing purposes. */ public static function reset() { self::$instance = null; } }