wpseek.com
A WordPress-centric search engine for devs and theme authors
sanitize_sql_orderby › WordPress Function
Since2.5.1
Deprecatedn/a
› sanitize_sql_orderby ( $orderby )
Parameters: |
|
Returns: |
|
Defined at: |
|
Codex: |
Ensures a string is a valid SQL 'order by' clause.
Accepts one or more columns, with or without a sort order (ASC / DESC). e.g. 'column_1', 'column_1, column_2', 'column_1 ASC, column_2 DESC' etc. Also accepts 'RAND()'.Related Functions: sanitize_user, sanitize_title_for_query, sanitize_key, sanitize_term, sanitize_user_object