Hi,
Jetzt bin ich ziemlich unsicher ob man Daten mit der prepare() Methode, validieren muss. Bei vielen Tutorials meinen die nein. Doch wenn ich die Doku lese:
https://codex.wordpress.org/Class_Reference/wpdb
Zitatvalue_parameter (int|string|array) The value to substitute into the placeholder. Many values may be passed by simply passing more arguments in a sprintf()-like fashion. Alternatively the second argument can be an array containing the values as in PHP's vsprintf() function. Care must be taken not to allow direct user input to this parameter, which would enable array manipulation of any query with multiple placeholders. Values cannot be SQL-escaped.
Sagt ja das man es muss. Oder interpretiere ich das falsch? Danke im voraus.