WPSEO_Import_Status::get_default_success_message
Returns a success message depending on the action.
Метод класса: WPSEO_Import_Status{}
Хуков нет.
Возвращает
Строку. Returns a success message for the current action.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_default_success_message();
Код WPSEO_Import_Status::get_default_success_message() WPSEO Import Status::get default success message Yoast 27.3
private function get_default_success_message() {
switch ( $this->action ) {
case 'import':
/* translators: %s is replaced with the name of the plugin we're importing data from. */
return __( '%s data successfully imported.', 'wordpress-seo' );
case 'cleanup':
/* translators: %s is replaced with the name of the plugin we're removing data from. */
return __( '%s data successfully removed.', 'wordpress-seo' );
case 'detect':
default:
/* translators: %s is replaced with the name of the plugin we've found data from. */
return __( '%s data found.', 'wordpress-seo' );
}
}