Yoast_Input_Validation::get_dirty_value_message
Устарела с версии 23.3. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Gets a specific invalid value message.
Метод класса: Yoast_Input_Validation{}
Хуков нет.
Возвращает
Строку
. The error invalid value message or empty string.
Использование
$result = Yoast_Input_Validation::get_dirty_value_message( $error_code ) // @phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable, Generic.CodeAnalysis.UnusedFunctionParameter.Found -- Needed for BC.;
- $error_code(строка) (обязательный)
- Code of the error set via add_settings_error(), normally the variable name.
Список изменений
С версии 12.1 | Введена. |
Устарела с | 23.3 |
Код Yoast_Input_Validation::get_dirty_value_message() Yoast Input Validation::get dirty value message Yoast 25.3
public static function get_dirty_value_message( $error_code ) { // @phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable, Generic.CodeAnalysis.UnusedFunctionParameter.Found -- Needed for BC. _deprecated_function( __METHOD__, 'Yoast SEO 23.3' ); return ''; }