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; } }
Fatal error: Uncaught Error: Class "Automattic\Jetpack\Partner" not found in /htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection/src/class-manager.php:157 Stack trace: #0 /htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-config/src/class-config.php(266): Automattic\Jetpack\Connection\Manager::configure() #1 /htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-config/src/class-config.php(217): Automattic\Jetpack\Config->enable_connection() #2 /htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-config/src/class-config.php(107): Automattic\Jetpack\Config->ensure_feature('connection') #3 /htdocs/wp-includes/class-wp-hook.php(324): Automattic\Jetpack\Config->on_plugins_loaded('') #4 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #5 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /htdocs/wp-settings.php(559): do_action('plugins_loaded') #7 /htdocs/wp-config.php(85): require_once('/htdocs/wp-sett...') #8 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #9 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #10 /htdocs/index.php(17): require('/htdocs/wp-blog...') #11 {main} thrown in /htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-connection/src/class-manager.php on line 157