apply_filters( 'bp_xprofile_field_type_set_format', string $format, string $replace_format, BP_XProfile_Field_Type $this )

Filters the regex format for the field type.

Description

Parameters

$format

(string) Regex string.

$replace_format

(string) replace format If "replace", replaces the format instead of adding to it. Defaults to "add".

$this

(BP_XProfile_Field_Type) Current instance of the BP_XProfile_Field_Type class.

Source

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

Changelog

Changelog
Version Description
BuddyPress 2.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.