- Timestamp:
- 04/28/2018 01:32:52 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/members/functions.php
r11900 r12008 216 216 } 217 217 218 /** 219 * Filters the BuddyPress Nouveau template hierarchy after resetting front template for members. 220 * 221 * @since 3.0.0 222 * 223 * @param array $templates Array of templates. 224 */ 218 225 return apply_filters( '_bp_nouveau_member_reset_front_template', $templates ); 219 226 } … … 285 292 } 286 293 294 /** 295 * Filters the found template parts for the member template part locating functionality. 296 * 297 * @since 3.0.0 298 * 299 * @param array $templates Array of found templates. 300 */ 287 301 return bp_locate_template( apply_filters( 'bp_nouveau_member_locate_template_part', $templates ), false, true ); 288 302 } … … 305 319 306 320 /** 307 * Let plugins adding an action to bp_get_template_part get it from here 321 * Let plugins adding an action to bp_get_template_part get it from here. 322 * 323 * @since 3.0.0 308 324 * 309 325 * @param string $slug Template part slug requested. … … 402 418 add_filter( 'bp_before_has_members_parse_args', 'bp_nouveau_member_members_widget_overrides', 10, 1 ); 403 419 420 /** 421 * Fires after Nouveau adds its members home widget filters. 422 * 423 * @since 3.0.0 424 */ 404 425 do_action( 'bp_nouveau_members_add_home_widget_filters' ); 405 426 } … … 415 436 remove_filter( 'bp_before_has_members_parse_args', 'bp_nouveau_member_members_widget_overrides', 10, 1 ); 416 437 438 /** 439 * Fires after Nouveau removes its members home widget filters. 440 * 441 * @since 3.0.0 442 */ 417 443 do_action( 'bp_nouveau_members_remove_home_widget_filters' ); 418 444 } … … 428 454 */ 429 455 function bp_nouveau_get_wp_profile_fields( $user = null ) { 430 // Leave a chance to plugins to avoid showing the contact methods they're adding on front end. 456 /** 457 * Filters the contact methods to be included in the WP Profile fields for a specific user. 458 * 459 * Provide a chance for plugins to avoid showing the contact methods they're adding on front end. 460 * 461 * @since 3.0.0 462 * 463 * @param array $value Array of user contact methods. 464 * @param WP_User $user WordPress user to get contact methods for. 465 */ 431 466 $contact_methods = (array) apply_filters( 'bp_nouveau_get_wp_profile_field', wp_get_user_contact_methods( $user ), $user ); 432 467
Note: See TracChangeset
for help on using the changeset viewer.