BP_Media_Query::validate_column( string $column = '' )
Validates a column name parameter.
Description
Column names are checked against a whitelist of known tables. See BP_Media_Query::db_tables.
Parameters
- $column
-
(Optional) The user-supplied column name.
Default value: ''
Return
(string) A validated column name value.
Source
File: bp-media/classes/class-bp-media-query.php
public function validate_column( $column = '' ) { if ( in_array( $column, $this->db_columns ) ) { return $column; } else { return ''; } }
Changelog
Version | Description |
---|---|
BuddyBoss 1.1.9 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.