bp_ps_meta( $form )

Return BuddyBoss Profile Search meta options.

Description

Source

File: bp-core/profile-search/bps-start.php

function bp_ps_meta ( $form ) {
	static $options;
	if (isset ($options[$form]))  return $options[$form];

	$default = array ();
	$default['field_code'] = array ();
	$default['field_label'] = array ();
	$default['field_desc'] = array ();
	$default['field_mode'] = array ();
	$default['method'] = 'POST';
	$default['action'] = 0;
	$default['directory'] = 'No';

	$meta = get_post_meta ($form);
	$options[$form] = isset ($meta['bp_ps_options'])? unserialize ($meta['bp_ps_options'][0]): $default;

	return $options[$form];
}

Changelog

Changelog
Version Description
BuddyBoss 1.0.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.