WPSEO_Premium_Upsell_Admin_Block::get_argument_html()protectedYoast 1.0

Formats the argument to a HTML list item.

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

Хуков нет.

Возвращает

Строку. Formatted argument in HTML.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_argument_html( $argument );
$argument(строка) (обязательный)
The argument to format.

Код WPSEO_Premium_Upsell_Admin_Block::get_argument_html() Yoast 22.4

protected function get_argument_html( $argument ) {
	$class = $this->get_html_class();

	return sprintf(
		'<li><div class="%1$s">%2$s</div></li>',
		esc_attr( $class . '--argument' ),
		$argument
	);
}