diff --git src/bp-xprofile/bp-xprofile-template.php src/bp-xprofile/bp-xprofile-template.php
index e233f23..10a983a 100644
|
|
function bp_the_profile_field_is_required() { |
802 | 802 | * Filters whether or not a profile field is required. |
803 | 803 | * |
804 | 804 | * @since 1.1.0 |
| 805 | * @since 2.7.0 Added field ID. |
805 | 806 | * |
806 | 807 | * @param bool $retval Whether or not the field is required. |
| 808 | * @param int $value Field ID that may be required. |
807 | 809 | */ |
808 | | return apply_filters( 'bp_get_the_profile_field_is_required', (bool) $retval ); |
| 810 | return apply_filters( 'bp_get_the_profile_field_is_required', (bool) $retval, $field->id ); |
809 | 811 | } |
810 | 812 | |
811 | 813 | /** |
… |
… |
function bp_the_profile_field_visibility_level() { |
840 | 842 | * Filters the profile field visibility level. |
841 | 843 | * |
842 | 844 | * @since 1.6.0 |
| 845 | * @since 2.7.0 Added field ID. |
843 | 846 | * |
844 | 847 | * @param string $retval Field visibility level. |
| 848 | * @param int $value Field ID. |
845 | 849 | */ |
846 | | return apply_filters( 'bp_get_the_profile_field_visibility_level', $retval ); |
| 850 | return apply_filters( 'bp_get_the_profile_field_visibility_level', $retval, $field->id ); |
847 | 851 | } |
848 | 852 | |
849 | 853 | /** |