Yoast\WP\SEO\Bulk_Editor\Domain\Updates
Update_Result::for_failure
Creates a failed result.
Метод класса: Update_Result{}
Хуков нет.
Возвращает
self. The failed result.
Использование
$result = Update_Result::for_failure( $post_id, $error_code ): self;
- $post_id(int) (обязательный)
- The ID of the post the result is for.
- $error_code(строка) (обязательный)
- The error code describing the failure.
Код Update_Result::for_failure() Update Result::for failure Yoast 28.3
public static function for_failure( int $post_id, string $error_code ): self {
return new self( $post_id, false, $error_code );
}