BP_XProfile_ProfileData::is_valid_field()

Check if this data is for a valid field.


Description Description


Return Return

(bool)


Top ↑

Source Source

File: bp-xprofile/classes/class-bp-xprofile-profiledata.php

157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
public function is_valid_field() {
    global $wpdb;
 
    $bp = buddypress();
 
    $retval = $wpdb->get_row( $wpdb->prepare( "SELECT id FROM {$bp->profile->table_name_fields} WHERE id = %d", $this->field_id ) );
 
    /**
     * Filters whether or not data is for a valid field.
     *
     * @since 1.2.7
     *
     * @param bool                    $retval Whether or not data is valid.
     * @param BP_XProfile_ProfileData $this   Instance of the current BP_XProfile_ProfileData class.
     */
    return apply_filters_ref_array( 'xprofile_data_is_valid_field', array( (bool)$retval, $this ) );
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.