WPSEO_Import_Status::get_msg()publicYoast 1.0

Get the import message.

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

Хуков нет.

Возвращает

Строку. Message about current status.

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

$WPSEO_Import_Status = new WPSEO_Import_Status();
$WPSEO_Import_Status->get_msg();

Код WPSEO_Import_Status::get_msg() Yoast 22.4

public function get_msg() {
	if ( $this->msg !== '' ) {
		return $this->msg;
	}

	if ( $this->status === false ) {
		/* translators: %s is replaced with the name of the plugin we're trying to find data from. */
		return __( '%s data not found.', 'wordpress-seo' );
	}

	return $this->get_default_success_message();
}