WPSEO_Premium_Upsell_Admin_Block::get_arguments │ private │ Yoast 1.0

Returns the arguments based on whether WooCommerce is active.

Метод класса: WPSEO_Premium_Upsell_Admin_Block{}

Хуков нет.

Возвращает

array<string>. The arguments list.

Использование

// private - только в коде основоного (родительского) класса
$result = $this->get_arguments( $is_woocommerce_active );
$is_woocommerce_active(true|false) (обязательный)
Whether WooCommerce is active.

Код WPSEO_Premium_Upsell_Admin_Block::get_arguments() Yoast 28.7

private function get_arguments( bool $is_woocommerce_active ) {
	$arguments = [
		esc_html__( 'Generate SEO optimized metadata in seconds with AI', 'wordpress-seo' ),
		esc_html__( 'Make your articles visible, be seen in Google News', 'wordpress-seo' ),
		esc_html__( 'Built to get found by search, AI, and real users', 'wordpress-seo' ),
		esc_html__( 'Easy Local SEO. Show up in Google Maps results', 'wordpress-seo' ),
		esc_html__( 'Internal links and redirect management, easy', 'wordpress-seo' ),
		esc_html__( 'Access to friendly help when you need it, day or night', 'wordpress-seo' ),
	];

	if ( $is_woocommerce_active ) {
		$arguments[1] = esc_html__( 'Boost visibility for your products, from 10 or 10,000+', 'wordpress-seo' );
	}

	return $arguments;
}