post_title : '' ); } public static function post_excerpt( int $post_id ): string { $post = get_post( $post_id ); return self::plain( $post ? $post->post_excerpt : '' ); } public static function post_content( int $post_id ): string { $post = get_post( $post_id ); return self::plain( $post ? $post->post_content : '' ); } /** Sanitize single-line field for storage (title, ALT). */ public static function sanitize_line( mixed $value ): string { return sanitize_text_field( self::plain( $value ) ); } /** Sanitize multi-line plain text (caption, description). */ public static function sanitize_multiline( mixed $value ): string { return sanitize_textarea_field( self::plain( $value ) ); } }