bp_xprofile_get_signup_field_ids()

Returns the signup field IDs.


Return Return

(int[]) The signup field IDs.


Source Source

File: bp-xprofile/bp-xprofile-functions.php

function bp_xprofile_get_signup_field_ids() {
	$signup_field_ids = wp_cache_get( 'signup_fields', 'bp_xprofile' );

	if ( ! $signup_field_ids ) {
		global $wpdb;
		$bp = buddypress();

		$signup_field_ids = $wpdb->get_col( "SELECT object_id FROM {$bp->profile->table_name_meta} WHERE object_type = 'field' AND meta_key = 'signup_position' ORDER BY meta_value ASC" );

		wp_cache_set( 'signup_fields', $signup_field_ids, 'bp_xprofile' );
	}

	return array_map( 'intval', $signup_field_ids );
}


Top ↑

Changelog Changelog

Changelog
Version Description
8.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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