BP_XProfile_Field::get_do_autolink()

Get whether the field values should be auto-linked to a directory search.


Description Description

Lazy-loaded to reduce overhead.

Defaults to true for multi and default fields, false for single fields.


Return Return

(bool)


Top ↑

Source Source

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

	public function get_do_autolink() {
		if ( ! isset( $this->do_autolink ) ) {
			$do_autolink = bp_xprofile_get_meta( $this->id, 'field', 'do_autolink' );

			if ( '' === $do_autolink ) {
				$this->do_autolink = $this->type_obj->supports_options;
			} else {
				$this->do_autolink = 'on' === $do_autolink;
			}
		}

		return $this->do_autolink;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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