Yoast_Notification::get_json()publicYoast 1.0

Get the JSON if provided.

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

Хуков нет.

Возвращает

false|Строку.

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

$Yoast_Notification = new Yoast_Notification();
$Yoast_Notification->get_json();

Код Yoast_Notification::get_json() Yoast 22.4

public function get_json() {
	if ( empty( $this->options['data_json'] ) ) {
		return '';
	}

	return WPSEO_Utils::format_json_encode( $this->options['data_json'] );
}