Yoast\WP\SEO\Bulk_Editor\Domain\Updates
Update_Result::for_success
Creates a successful result.
Метод класса: Update_Result{}
Хуков нет.
Возвращает
self. The successful result.
Использование
$result = Update_Result::for_success( $post_id, $rendered, $sanitized ): self;
- $post_id(int) (обязательный)
- The ID of the post the result is for.
- $rendered(array<string, string>)
- The rendered values of the updated fields, keyed by field.
По умолчанию:[] - $sanitized(array<string, string>)
- The sanitized literals that were persisted, keyed by field.
По умолчанию:[]
Код Update_Result::for_success() Update Result::for success Yoast 28.9
public static function for_success( int $post_id, array $rendered = [], array $sanitized = [] ): self {
return new self( $post_id, true, null, $rendered, $sanitized );
}