sanitize_sql_orderby [ WordPress Function ]
sanitize_sql_orderby ( $orderby )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: sanitize_title_for_query, sanitize_user, sanitize_key, sanitize_term, sanitize_user_object
Ensures a string is a valid SQL order by clause.
Accepts one or more columns, with or without ASC/DESC, and also accepts RAND().
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- sanitize_sql_orderby
Function and Method Cross Reference. sanitize_sql_orderby(). Defined at: /wp- includes/formatting.php -> line 1003. Referenced 1 times: ...
phpxref.ftwr.co.uk - WordPress › Support » Tags — sanitize_sql_orderby
Forums. Username or Email Address Password (forgot?) Register · WordPress › Support » sanitize_sql_orderby. Tag: sanitize_sql_orderby Add New » ...
wordpress.org - WordPress › Support » Better sort function for photos in album/gallery
... $imgsort_orderby; if ($imgsort_orderby == '' && isset($_GET['imgsort_orderby']) ) { $imgsort_orderby = sanitize_sql_orderby( $_GET['imgsort_orderby'] ); } if ...
wordpress.org - How to manually fix the WordPress gallery code using PHP in ...
Feb 27, 2012... make sure it looks like a valid orderby statement if ( isset( $attr['orderby'] ) ) { $ attr['orderby'] = sanitize_sql_orderby( $attr['orderby'] ); if ( !
wordpress.stackexchange.com