Changeset 10140 for trunk/src/bp-xprofile/bp-xprofile-functions.php
- Timestamp:
- 09/25/2015 12:18:18 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-functions.php
r9819 r10140 1 1 <?php 2 3 /** 4 * BuddyPress XProfile Filters 2 /** 3 * BuddyPress XProfile Filters. 5 4 * 6 5 * Business functions are where all the magic happens in BuddyPress. They will … … 10 9 * 11 10 * @package BuddyPress 12 * @subpackage XProfileF ilters13 */ 14 15 // Exit if accessed directly 11 * @subpackage XProfileFunctions 12 */ 13 14 // Exit if accessed directly. 16 15 defined( 'ABSPATH' ) || exit; 17 16 … … 23 22 * Procedural wrapper for BP_XProfile_Group::get() method. 24 23 * 25 * @since BuddyPress (2.1.0)24 * @since 2.1.0 26 25 * 27 26 * @param array $args See {@link BP_XProfile_Group::get()} for description of … … 36 35 * Filters a set of field groups, populated with fields and field data. 37 36 * 38 * @since BuddyPress (2.1.0)37 * @since 2.1.0 39 38 * 40 39 * @param array $groups Array of field groups and field data. … … 47 46 * Insert a new profile field group 48 47 * 49 * @since BuddyPress (1.0.0)48 * @since 1.0.0 50 49 * 51 50 * @param type $args … … 79 78 * Get a specific profile field group 80 79 * 81 * @since BuddyPress (1.0.0)80 * @since 1.0.0 82 81 * 83 82 * @param int $field_group_id … … 101 100 * Delete a specific profile field group 102 101 * 103 * @since BuddyPress (1.0.0)102 * @since 1.0.0 104 103 * 105 104 * @param int $field_group_id … … 123 122 * Update the position of a specific profile field group 124 123 * 125 * @since BuddyPress (1.0.0)124 * @since 1.0.0 126 125 * 127 126 * @param int $field_group_id … … 140 139 * 141 140 * @return array Key/value pairs (field type => class name). 142 * @since BuddyPress (2.0.0)141 * @since 2.0.0 143 142 */ 144 143 function bp_xprofile_get_field_types() { … … 160 159 * If you've added a custom field type in a plugin, register it with this filter. 161 160 * 162 * @since BuddyPress (2.0.0)161 * @since 2.0.0 163 162 * 164 163 * @param array $fields Array of field type/class name pairings. … … 172 171 * @param string $type Type of profile field to create. See {@link bp_xprofile_get_field_types()} for default core values. 173 172 * @return object If field type unknown, returns BP_XProfile_Field_Type_Textarea. Otherwise returns an instance of the relevant child class of BP_XProfile_Field_Type. 174 * @since BuddyPress (2.0.0)173 * @since 2.0.0 175 174 */ 176 175 function bp_xprofile_create_field_type( $type ) { … … 324 323 * Filters the field data value for a specific field for the user. 325 324 * 326 * @since BuddyPress (1.0.0)325 * @since 1.0.0 327 326 * 328 327 * @param string $value Value saved for the field. … … 377 376 * doing field-type-specific validation. 378 377 * 379 * @since BuddyPress (2.1.0)378 * @since 2.1.0 380 379 * 381 380 * @param mixed $value Value passed to xprofile_set_field_data() … … 458 457 * Get the visibility level for a field. 459 458 * 460 * @since BuddyPress (2.0.0)459 * @since 2.0.0 461 460 * 462 461 * @param int $field_id The ID of the xprofile field. … … 567 566 * Filters a random piece of profile data for the user. 568 567 * 569 * @since BuddyPress (1.0.0)568 * @since 1.0.0 570 569 * 571 570 * @param array $field_data Array holding random profile data. … … 613 612 * globals before attempting any overrides. 614 613 * 615 * @since BuddyPress (2.0.0)614 * @since 2.0.0 616 615 */ 617 616 function xprofile_override_user_fullnames() { … … 634 633 * Setup the avatar upload directory for a user. 635 634 * 636 * @since BuddyPress (1.0.0)635 * @since 1.0.0 637 636 * 638 637 * @package BuddyPress Core … … 664 663 * Filters the avatar upload directory for a user. 665 664 * 666 * @since BuddyPress (1.1.0)665 * @since 1.1.0 667 666 * 668 667 * @param array $value Array containing the path, URL, and other helpful settings. … … 681 680 * When search_terms are passed to BP_User_Query, search against xprofile fields. 682 681 * 683 * @since BuddyPress (2.0.0)682 * @since 2.0.0 684 683 * 685 684 * @param array $sql Clauses in the user_id SQL query. … … 771 770 * Syncs the standard built in WordPress profile data to XProfile. 772 771 * 773 * @since BuddyPress (1.2.4)772 * @since 1.2.4 774 773 * @package BuddyPress Core 775 774 */ … … 909 908 * Add a piece of xprofile metadata. 910 909 * 911 * @since BuddyPress (2.0.0)910 * @since 2.0.0 912 911 * 913 912 * @param int $object_id ID of the object the metadata belongs to. … … 945 944 * Return the field ID for the Full Name xprofile field. 946 945 * 947 * @since BuddyPress (2.0.0)946 * @since 2.0.0 948 947 * 949 948 * @return int Field ID. … … 968 967 * 969 968 * @package BuddyPress 970 * @since BuddyPress (1.5.0)969 * @since 1.5.0 971 970 * 972 971 * @return string The field name … … 977 976 * Filters the field name for the Full Name xprofile field. 978 977 * 979 * @since BuddyPress (1.5.0)978 * @since 1.5.0 980 979 * 981 980 * @param string BP_XPROFILE_FULLNAME_FIELD_NAME Full name field constant. … … 994 993 * Filters the visibility levels out of the $bp global. 995 994 * 996 * @since BuddyPress (1.6.0)995 * @since 1.6.0 997 996 * 998 997 * @param array $visibility_levels Array of visibility levels. … … 1009 1008 * be excluded from the profile loop. 1010 1009 * 1011 * @since BuddyPress (1.6.0)1010 * @since 1.6.0 1012 1011 * @see BP_XProfile_Group::get() 1013 1012 * @uses apply_filters() Filter bp_xprofile_get_hidden_fields_for_user to modify visibility levels, … … 1038 1037 * Filters the ids of fields that are hidden for this displayed/loggedin user pair. 1039 1038 * 1040 * @since BuddyPress (1.6.0)1039 * @since 1.6.0 1041 1040 * 1042 1041 * @param array $hidden_fields Array of hidden fields for the displayed/logged in user. … … 1056 1055 * that should be hidden for the current user pair. 1057 1056 * 1058 * @since BuddyPress (1.8.2)1057 * @since 1.8.2 1059 1058 * @see bp_xprofile_get_hidden_fields_for_user() 1060 1059 * … … 1090 1089 * Filters the visibility levels that should be hidden for this user pair. 1091 1090 * 1092 * @since BuddyPress (2.0.0)1091 * @since 2.0.0 1093 1092 * 1094 1093 * @param array $hidden_fields Array of hidden fields for the displayed/logged in user. … … 1102 1101 * Fetch an array of the xprofile fields that a given user has marked with certain visibility levels 1103 1102 * 1104 * @since BuddyPress (1.6.0)1103 * @since 1.6.0 1105 1104 * @see bp_xprofile_get_hidden_fields_for_user() 1106 1105 *
Note: See TracChangeset
for help on using the changeset viewer.