Yoast_Notification::get_json │ public │ Yoast 1.0

Get the JSON if provided.

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

Хуков нет.

Возвращает

string|false.

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

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

Код Yoast_Notification::get_json() Yoast 28.9

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

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