BP_Activity_Query::validate_column( string $column = '' )
Validates a column name parameter.
Description
Column names are checked against a whitelist of known tables. See BP_Activity_Query::db_tables.
Parameters
- $column
-
(Optional) The user-supplied column name.
Default value: ''
Return
(string) A validated column name value.
Source
File: bp-activity/classes/class-bp-activity-query.php
public function validate_column( $column = '' ) { if ( in_array( $column, $this->db_columns ) ) { return $column; } else { return ''; } }
Changelog
Version | Description |
---|---|
BuddyPress 2.2.0 | 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.