Changeset 12008
- Timestamp:
- 04/28/2018 01:32:52 AM (8 years ago)
- Location:
- trunk/src
- Files:
-
- 21 edited
-
bp-templates/bp-nouveau/buddypress-functions.php (modified) (8 diffs)
-
bp-templates/bp-nouveau/buddypress/assets/_attachments/avatars/index.php (modified) (1 diff)
-
bp-templates/bp-nouveau/buddypress/assets/_attachments/cover-images/index.php (modified) (1 diff)
-
bp-templates/bp-nouveau/includes/activity/ajax.php (modified) (2 diffs)
-
bp-templates/bp-nouveau/includes/activity/functions.php (modified) (5 diffs)
-
bp-templates/bp-nouveau/includes/activity/template-tags.php (modified) (10 diffs)
-
bp-templates/bp-nouveau/includes/activity/widgets.php (modified) (2 diffs)
-
bp-templates/bp-nouveau/includes/ajax.php (modified) (2 diffs)
-
bp-templates/bp-nouveau/includes/blogs/template-tags.php (modified) (9 diffs)
-
bp-templates/bp-nouveau/includes/classes.php (modified) (2 diffs)
-
bp-templates/bp-nouveau/includes/customizer.php (modified) (4 diffs)
-
bp-templates/bp-nouveau/includes/functions.php (modified) (4 diffs)
-
bp-templates/bp-nouveau/includes/groups/classes.php (modified) (1 diff)
-
bp-templates/bp-nouveau/includes/groups/functions.php (modified) (7 diffs)
-
bp-templates/bp-nouveau/includes/groups/template-tags.php (modified) (13 diffs)
-
bp-templates/bp-nouveau/includes/members/functions.php (modified) (6 diffs)
-
bp-templates/bp-nouveau/includes/members/template-tags.php (modified) (17 diffs)
-
bp-templates/bp-nouveau/includes/messages/ajax.php (modified) (1 diff)
-
bp-templates/bp-nouveau/includes/messages/functions.php (modified) (1 diff)
-
bp-templates/bp-nouveau/includes/template-tags.php (modified) (26 diffs)
-
class-buddypress.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/buddypress-functions.php
r12002 r12008 117 117 } 118 118 119 /** 120 * Fires after all of the BuddyPress Nouveau includes have been loaded. Passed by reference. 121 * 122 * @since 3.0.0 123 * 124 * @param BP_Nouveau $value Current BP_Nouveau instance. 125 */ 119 126 do_action_ref_array( 'bp_nouveau_includes', array( &$this ) ); 120 127 } … … 128 135 $width = 1300; 129 136 $top_offset = 150; 137 138 /** This filter is documented in bp-core/bp-core-avatars.php. */ 130 139 $avatar_height = apply_filters( 'bp_core_avatar_full_height', $top_offset ); 131 140 … … 215 224 } 216 225 226 /** 227 * Filters the BuddyPress Nouveau CSS dependencies. 228 * 229 * @since 3.0.0 230 * 231 * @param array $value Array of style dependencies. Default Dashicons. 232 */ 217 233 $css_dependencies = apply_filters( 'bp_nouveau_css_dependencies', array( 'dashicons' ) ); 218 234 235 /** 236 * Filters the styles to enqueue for BuddyPress Nouveau. 237 * 238 * This filter provides a multidimensional array that will map to arguments used for wp_enqueue_style(). 239 * The primary index should have the stylesheet handle to use, and be assigned an array that has indexes for 240 * file location, dependencies, and version. 241 * 242 * @since 3.0.0 243 * 244 * @param array $value Array of styles to enqueue. 245 */ 219 246 $styles = apply_filters( 'bp_nouveau_enqueue_styles', array( 220 247 'bp-nouveau' => array( … … 270 297 unset( $dependencies[ $bp_confirm ] ); 271 298 299 /** 300 * Filters the scripts to enqueue for BuddyPress Nouveau. 301 * 302 * This filter provides a multidimensional array that will map to arguments used for wp_register_script(). 303 * The primary index should have the script handle to use, and be assigned an array that has indexes for 304 * file location, dependencies, version and if it should load in the footer or not. 305 * 306 * @since 3.0.0 307 * 308 * @param array $value Array of scripts to register. 309 */ 272 310 $scripts = apply_filters( 'bp_nouveau_register_scripts', array( 273 311 'bp-nouveau' => array( … … 337 375 } 338 376 377 /** 378 * Fires after all of the BuddyPress Nouveau scripts have been enqueued. 379 * 380 * @since 3.0.0 381 */ 339 382 do_action( 'bp_nouveau_enqueue_scripts' ); 340 383 } … … 390 433 } 391 434 392 // Set the supported components 435 /** 436 * Filters the supported BuddyPress Nouveau components. 437 * 438 * @since 3.0.0 439 * 440 * @param array $value Array of supported components. 441 */ 393 442 $supported_objects = (array) apply_filters( 'bp_nouveau_supported_components', bp_core_get_packaged_component_ids() ); 394 443 $object_nonces = array(); … … 421 470 * @since 3.0.0 422 471 * 423 * @param array $ valueArray of key/value pairs for AJAX usage.472 * @param array $params Array of key/value pairs for AJAX usage. 424 473 */ 425 474 wp_localize_script( 'bp-nouveau', 'BP_Nouveau', apply_filters( 'bp_core_get_js_strings', $params ) ); … … 442 491 * Filters whether or not we are looking at a directory to determine if to return early. 443 492 * 444 * @since 2.2.0493 * @since 3.0.0 445 494 * 446 495 * @param bool $value Whether or not we are viewing a directory. -
trunk/src/bp-templates/bp-nouveau/buddypress/assets/_attachments/avatars/index.php
r11719 r12008 38 38 <button type="button" class="button edit" id="bp-delete-avatar"><?php esc_html_e( 'Delete Group Profile Photo', 'buddypress' ); ?></button> 39 39 <# } else { #> 40 <?php do_action( 'bp_attachments_avatar_delete_template' ); ?> 40 <?php 41 /** 42 * Fires inside the avatar delete frontend template markup if no other data.object condition is met. 43 * 44 * @since 3.0.0 45 */ 46 do_action( 'bp_attachments_avatar_delete_template' ); ?> 41 47 <# } #> 42 48 </script> 43 49 44 <?php do_action( 'bp_attachments_avatar_main_template' ); ?> 50 <?php 51 /** 52 * Fires after the avatar main frontend template markup. 53 * 54 * @since 3.0.0 55 */ 56 do_action( 'bp_attachments_avatar_main_template' ); ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/assets/_attachments/cover-images/index.php
r11719 r12008 27 27 <button type="button" class="button edit" id="bp-delete-cover-image"><?php esc_html_e( 'Delete Group Cover Image', 'buddypress' ); ?></button> 28 28 <# } else { #> 29 <?php do_action( 'bp_attachments_cover_image_delete_template' ); ?> 29 <?php 30 /** 31 * Fires inside the cover image delete frontend template markup if no other data.object condition is met. 32 * 33 * @since 3.0.0 34 */ 35 do_action( 'bp_attachments_cover_image_delete_template' ); ?> 30 36 <# } #> 31 37 </script> 32 38 33 <?php do_action( 'bp_attachments_cover_image_main_template' ); ?> 39 <?php 40 /** 41 * Fires after the cover image main frontend template markup. 42 * 43 * @since 3.0.0 44 */ 45 do_action( 'bp_attachments_cover_image_main_template' ); ?> -
trunk/src/bp-templates/bp-nouveau/includes/activity/ajax.php
r11903 r12008 439 439 wp_send_json_success( array_map( 'bp_nouveau_prepare_group_for_js', $groups['groups'] ) ); 440 440 } else { 441 442 /** 443 * Filters the response for custom activity objects. 444 * 445 * @since 3.0.0 446 * 447 * @param array $response Array of custom response objects to send to AJAX return. 448 * @param array $value Activity object type from $_POST global. 449 */ 441 450 $response = apply_filters( 'bp_nouveau_get_activity_custom_objects', $response, $_POST['type'] ); 442 451 } … … 544 553 'message' => sprintf( __( 'Update posted <a href="%s" class="just-posted">View activity</a>', 'buddypress' ), esc_url( bp_activity_get_permalink( $activity_id ) ) ), 545 554 'activity' => $acivity, 555 556 /** 557 * Filters whether or not an AJAX post update is private. 558 * 559 * @since 3.0.0 560 * 561 * @param string/bool $is_private Privacy status for the update. 562 */ 546 563 'is_private' => apply_filters( 'bp_nouveau_ajax_post_update_is_private', $is_private ), 547 564 'is_directory' => bp_is_activity_directory(), -
trunk/src/bp-templates/bp-nouveau/includes/activity/functions.php
r12002 r12008 90 90 91 91 /** 92 * Filter to include specificAction buttons.92 * Filters the included, specific, Action buttons. 93 93 * 94 94 * @since 3.0.0 … … 145 145 } 146 146 147 /** 148 * Filters the activity objects to apply for localized javascript data. 149 * 150 * @since 3.0.0 151 * 152 * @param array $activity_objects Array of activity objects. 153 */ 147 154 $activity_params['objects'] = apply_filters( 'bp_nouveau_activity_objects', $activity_objects ); 148 155 } … … 276 283 277 284 /** 285 * Filters the activity directory navigation items. 286 * 278 287 * Use this filter to introduce your custom nav items for the activity directory. 279 288 * … … 418 427 419 428 // Leave other components do their specific stuff if needed. 429 /** 430 * Filters the classes to be applied to the newest activity item. 431 * 432 * Leave other components do their specific stuff if needed. 433 * 434 * @since 3.0.0 435 * 436 * @param array $my_classes Array of classes to output to class attribute. 437 * @param string $scope Current scope for the activity type. 438 */ 420 439 $my_classes = (array) apply_filters( 'bp_nouveau_activity_scope_newest_class', $my_classes, $scope ); 421 440 … … 444 463 445 464 /** 446 * Filter to edit the activity widget arguments 465 * Filter to edit the activity widget arguments. 447 466 * 448 467 * @since 3.0.0 449 468 * 450 * @param array $args The activity arguments.469 * @param array $args The activity arguments. 451 470 */ 452 471 return apply_filters( 'bp_nouveau_activity_widget_query', $args ); -
trunk/src/bp-templates/bp-nouveau/includes/activity/template-tags.php
r11989 r12008 18 18 * Fires at the begining of the templates BP injected content. 19 19 * 20 * @since 2.3.0 (BuddyPress)20 * @since 2.3.0 21 21 */ 22 22 do_action( 'bp_before_directory_activity' ); … … 25 25 * Fires before the activity directory display content. 26 26 * 27 * @since 1.2.0 (BuddyPress)27 * @since 1.2.0 28 28 */ 29 29 do_action( 'bp_before_directory_activity_content' ); … … 176 176 * Fires after the display of an activity entry content. 177 177 * 178 * @since 1.2.0 (BuddyPress)178 * @since 1.2.0 179 179 */ 180 180 do_action( 'bp_activity_entry_content' ); … … 196 196 * Fires at the end of the activity entry meta data area. 197 197 * 198 * @since 1.2.0 (BuddyPress)198 * @since 1.2.0 199 199 */ 200 200 do_action( 'bp_activity_entry_meta' ); … … 586 586 * Filters the opening tag for the template that lists activity comments. 587 587 * 588 * @since 1.6.0 (BuddyPress)588 * @since 1.6.0 589 589 * 590 590 * @param string $value Opening tag for the HTML markup to use. … … 600 600 * Fires before the display of an activity comment. 601 601 * 602 * @since 1.5.0 (BuddyPress)602 * @since 1.5.0 603 603 */ 604 604 do_action( 'bp_before_activity_comment' ); … … 609 609 * Fires after the display of an activity comment. 610 610 * 611 * @since 1.5.0 (BuddyPress)611 * @since 1.5.0 612 612 */ 613 613 do_action( 'bp_after_activity_comment' ); … … 619 619 * Filters the closing tag for the template that list activity comments. 620 620 * 621 * @since 1.6.0 (BuddyPress)621 * @since 1.6.0 622 622 * 623 623 * @param string $value Closing tag for the HTML markup to use. … … 672 672 * Fires after the activity entry comment form. 673 673 * 674 * @since 1.5.0 (BuddyPress)674 * @since 1.5.0 675 675 */ 676 676 do_action( 'bp_activity_entry_comments' ); … … 691 691 * Fires after the defualt comment action options display. 692 692 * 693 * @since 1.6.0 (BuddyPress)693 * @since 1.6.0 694 694 */ 695 695 do_action( 'bp_activity_comment_options' ); -
trunk/src/bp-templates/bp-nouveau/includes/activity/widgets.php
r11900 r12008 21 21 */ 22 22 public function __construct() { 23 24 /** 25 * Filters the widget options for the BP_Latest_Activities widget. 26 * 27 * @since 3.0.0 28 * 29 * @param array $value Array of widget options. 30 */ 23 31 $widget_ops = apply_filters( 24 32 'bp_latest_activities', array( … … 61 69 } 62 70 63 // Allow title to be filtered 71 /** 72 * Filters the BP_Latest_Activities widget title. 73 * 74 * @since 3.0.0 75 * 76 * @param string $title The widget title. 77 * @param array $instance The settings for the particular instance of the widget. 78 * @param string $id_base Root ID for all widgets of this type. 79 */ 64 80 $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); 65 81 -
trunk/src/bp-templates/bp-nouveau/includes/ajax.php
r11903 r12008 76 76 } 77 77 78 /** 79 * Filters the browser URL for the template loader. 80 * 81 * @since 3.0.0 82 * 83 * @param string $feed_url Template feed url. 84 * @param string $scope Current component scope. 85 */ 78 86 $result['feed_url'] = apply_filters( 'bp_nouveau_ajax_object_template_loader', $feed_url, $scope ); 79 87 } … … 114 122 115 123 $template_path = bp_locate_template( array( $template_part ), false ); 124 125 /** 126 * Filters the server path for the template loader. 127 * 128 * @since 3.0.0 129 * 130 * @param string Template file path. 131 */ 116 132 $template_path = apply_filters( 'bp_nouveau_object_template_path', $template_path ); 117 133 -
trunk/src/bp-templates/bp-nouveau/includes/blogs/template-tags.php
r11899 r12008 19 19 * Fires at the begining of the templates BP injected content. 20 20 * 21 * @since 2.3.0 (BuddyPress)21 * @since 2.3.0 22 22 */ 23 23 do_action( 'bp_before_directory_blogs_page' ); … … 26 26 * Fires before the display of the blogs. 27 27 * 28 * @since 1.5.0 (BuddyPress)28 * @since 1.5.0 29 29 */ 30 30 do_action( 'bp_before_directory_blogs' ); … … 33 33 * Fires before the display of the blogs listing content. 34 34 * 35 * @since 3.0.0 (BuddyPress)35 * @since 3.0.0 36 36 */ 37 37 do_action( 'bp_before_directory_blogs_content' ); … … 40 40 * Fires before the display of the blogs list tabs. 41 41 * 42 * @since 2.3.0 (BuddyPress)42 * @since 2.3.0 43 43 */ 44 44 do_action( 'bp_before_directory_blogs_tabs' ); … … 54 54 * Fires inside and displays the blogs content. 55 55 * 56 * @since 3.0.0 (BuddyPress)56 * @since 3.0.0 57 57 */ 58 58 do_action( 'bp_directory_blogs_content' ); … … 61 61 * Fires after the display of the blogs listing content. 62 62 * 63 * @since 3.0.0 (BuddyPress)63 * @since 3.0.0 64 64 */ 65 65 do_action( 'bp_after_directory_blogs_content' ); … … 68 68 * Fires at the bottom of the blogs directory template file. 69 69 * 70 * @since 1.5.0 (BuddyPress)70 * @since 1.5.0 71 71 */ 72 72 do_action( 'bp_after_directory_blogs' ); … … 75 75 * Fires at the bottom of the blogs directory template file. 76 76 * 77 * @since 2.3.0 (BuddyPress)77 * @since 2.3.0 78 78 */ 79 79 do_action( 'bp_after_directory_blogs_page' ); … … 114 114 * Fires after the listing of a blog item in the blogs loop. 115 115 * 116 * @since 1.2.0 (BuddyPress)116 * @since 1.2.0 117 117 */ 118 118 do_action( 'bp_directory_blogs_item' ); -
trunk/src/bp-templates/bp-nouveau/includes/classes.php
r11900 r12008 224 224 } 225 225 226 /** 227 * Filters the nav widget args for the BP_Nouveau_Object_Nav_Widget widget. 228 * 229 * @since 3.0.0 230 * 231 * @param array $value Array of arguments { 232 * @param bool $bp_nouveau_widget_title Whether or not to assign a title for the widget. 233 * } 234 */ 226 235 $item_nav_args = wp_parse_args( $instance, apply_filters( 'bp_nouveau_object_nav_widget_args', array( 227 236 'bp_nouveau_widget_title' => true, … … 242 251 } 243 252 253 /** 254 * Filters the BP_Nouveau_Object_Nav_Widget widget title. 255 * 256 * @since 3.0.0 257 * 258 * @param string $title The widget title. 259 * @param array $instance The settings for the particular instance of the widget. 260 * @param string $id_base Root ID for all widgets of this type. 261 */ 244 262 $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); 245 263 -
trunk/src/bp-templates/bp-nouveau/includes/customizer.php
r11899 r12008 28 28 ) ); 29 29 30 /** 31 * Filters the BuddyPress Nouveau customizer sections and their arguments. 32 * 33 * @since 3.0.0 34 * 35 * @param array $value Array of Customizer sections. 36 */ 30 37 $sections = apply_filters( 'bp_nouveau_customizer_sections', array( 31 38 'bp_nouveau_general_settings' => array( … … 66 73 } 67 74 75 /** 76 * Filters the BuddyPress Nouveau customizer settings and their arguments. 77 * 78 * @since 3.0.0 79 * 80 * @param array $value Array of Customizer settings. 81 */ 68 82 $settings = apply_filters( 'bp_nouveau_customizer_settings', array( 69 83 'bp_nouveau_appearance[avatar_style]' => array( … … 208 222 } 209 223 224 /** 225 * Filters the BuddyPress Nouveau customizer controls and their arguments. 226 * 227 * @since 3.0.0 228 * 229 * @param array $value Array of Customizer controls. 230 */ 210 231 $controls = apply_filters( 'bp_nouveau_customizer_controls', array( 211 232 'bp_site_avatars' => array( … … 350 371 ); 351 372 373 /** 374 * Fires after Nouveau enqueues its required javascript. 375 * 376 * @since 3.0.0 377 */ 352 378 do_action( 'bp_nouveau_customizer_enqueue_scripts' ); 353 379 } -
trunk/src/bp-templates/bp-nouveau/includes/functions.php
r11977 r12008 363 363 */ 364 364 function bp_nouveau_current_user_can( $capability = '' ) { 365 /** 366 * Filters whether or not the current user can perform an action for BuddyPress Nouveau. 367 * 368 * @since 3.0.0 369 * 370 * @param bool $value Whether or not the user is logged in. 371 * @param string $capability Current capability being checked. 372 * @param int $value Current logged in user ID. 373 */ 365 374 return apply_filters( 'bp_nouveau_current_user_can', is_user_logged_in(), $capability, bp_loggedin_user_id() ); 366 375 } … … 386 395 // Get the hook output. 387 396 ob_start(); 397 398 /** 399 * Fires at the start of the output for `bp_nouveau_parse_hooked_dir_nav()`. 400 * 401 * This hook is variable and depends on the hook parameter passed in. 402 * 403 * @since 3.0.0 404 */ 388 405 do_action( $hook ); 389 406 $output = ob_get_clean(); … … 452 469 453 470 ob_start(); 471 472 /** 473 * Fires at the start of the output for `bp_nouveau_parse_hooked_options()`. 474 * 475 * This hook is variable and depends on the hook parameter passed in. 476 * 477 * @since 3.0.0 478 */ 454 479 do_action( $hook ); 455 480 … … 881 906 function bp_nouveau_get_user_feedback( $feedback_id = '' ) { 882 907 /** 883 * Filter to add your custom feedback messages 908 * Filters the BuddyPress Nouveau feedback messages. 909 * 910 * Use this filter to add your custom feedback messages. 911 * 912 * @since 3.0.0 884 913 * 885 914 * @param array $value The list of feedback messages. -
trunk/src/bp-templates/bp-nouveau/includes/groups/classes.php
r11899 r12008 229 229 'slug' => $this->group->slug, 230 230 'position' => -1, 231 /** This filter is documented in bp-groups/classes/class-bp-groups-component.php. */ 231 232 'default_subnav_slug' => apply_filters( 'bp_groups_default_extension', defined( 'BP_GROUPS_DEFAULT_EXTENSION' ) ? BP_GROUPS_DEFAULT_EXTENSION : 'home' ), 232 233 ), -
trunk/src/bp-templates/bp-nouveau/includes/groups/functions.php
r11968 r12008 208 208 } 209 209 210 /** 211 * Filters the response value for potential group invite data for use with javascript. 212 * 213 * @since 3.0.0 214 * 215 * @param array $response Array of invite data. 216 * @param WP_User $user User object. 217 */ 210 218 return apply_filters( 'bp_nouveau_prepare_group_potential_invites_for_js', $response, $user ); 211 219 } … … 601 609 * Fires after inside the group header item meta section. 602 610 * 603 * @since 1.2.0 (BuddyPress)611 * @since 1.2.0 604 612 */ 605 613 do_action( 'bp_group_header_meta' ); … … 843 851 } 844 852 853 /** 854 * Filters the BuddyPress Nouveau template hierarchy after resetting front template for groups. 855 * 856 * @since 3.0.0 857 * 858 * @param array $templates Array of templates. 859 */ 845 860 return apply_filters( '_bp_nouveau_group_reset_front_template', $templates ); 846 861 } … … 896 911 } 897 912 913 /** 914 * Filters the found template parts for the group template part locating functionality. 915 * 916 * @since 3.0.0 917 * 918 * @param array $templates Array of found templates. 919 */ 898 920 return bp_locate_template( apply_filters( 'bp_nouveau_group_locate_template_part', $templates ), false, true ); 899 921 } … … 916 938 917 939 /** 918 * Let plugins adding an action to bp_get_template_part get it from here 940 * Let plugins adding an action to bp_get_template_part get it from here. 941 * 942 * This is a variable hook that is dependent on the template part slug. 943 * 944 * @since 3.0.0 919 945 * 920 946 * @param string $slug Template part slug requested. … … 1002 1028 add_filter( 'bp_before_has_members_parse_args', 'bp_nouveau_group_members_widget_overrides', 10, 1 ); 1003 1029 1030 /** 1031 * Fires after BuddyPress Nouveau groups have added their home widget filters. 1032 * 1033 * @since 3.0.0 1034 */ 1004 1035 do_action( 'bp_nouveau_groups_add_home_widget_filters' ); 1005 1036 } … … 1015 1046 remove_filter( 'bp_before_has_members_parse_args', 'bp_nouveau_group_members_widget_overrides', 10, 1 ); 1016 1047 1048 /** 1049 * Fires after BuddyPress Nouveau groups have removed their home widget filters. 1050 * 1051 * @since 3.0.0 1052 */ 1017 1053 do_action( 'bp_nouveau_groups_remove_home_widget_filters' ); 1018 1054 } -
trunk/src/bp-templates/bp-nouveau/includes/groups/template-tags.php
r11996 r12008 19 19 * Fires at the begining of the templates BP injected content. 20 20 * 21 * @since 2.3.0 (BuddyPress)21 * @since 2.3.0 22 22 */ 23 23 do_action( 'bp_before_directory_groups_page' ); … … 26 26 * Fires before the display of the groups. 27 27 * 28 * @since 1.1.0 (BuddyPress)28 * @since 1.1.0 29 29 */ 30 30 do_action( 'bp_before_directory_groups' ); … … 33 33 * Fires before the display of the groups content. 34 34 * 35 * @since 1.1.0 (BuddyPress)35 * @since 1.1.0 36 36 */ 37 37 do_action( 'bp_before_directory_groups_content' ); … … 48 48 * Fires and displays the group content. 49 49 * 50 * @since 1.1.0 (BuddyPress)50 * @since 1.1.0 51 51 */ 52 52 do_action( 'bp_directory_groups_content' ); … … 55 55 * Fires after the display of the groups content. 56 56 * 57 * @since 1.1.0 (BuddyPress)57 * @since 1.1.0 58 58 */ 59 59 do_action( 'bp_after_directory_groups_content' ); … … 62 62 * Fires after the display of the groups. 63 63 * 64 * @since 1.1.0 (BuddyPress)64 * @since 1.1.0 65 65 */ 66 66 do_action( 'bp_after_directory_groups' ); … … 69 69 * Fires at the bottom of the groups directory template file. 70 70 * 71 * @since 1.5.0 (BuddyPress)71 * @since 1.5.0 72 72 */ 73 73 do_action( 'bp_after_directory_groups_page' ); … … 174 174 * Fires before the send invites content. 175 175 * 176 * @since 1.1.0 (BuddyPress)176 * @since 1.1.0 177 177 */ 178 178 do_action( 'bp_before_group_send_invites_content' ); … … 497 497 * Fires inside the action section of an individual group listing item. 498 498 * 499 * @since 1.1.0 (BuddyPress)499 * @since 1.1.0 500 500 */ 501 501 do_action( 'bp_directory_groups_actions' ); … … 1147 1147 * Fires before the display of the group home body. 1148 1148 * 1149 * @since 1.2.0 (BuddyPress)1149 * @since 1.2.0 1150 1150 */ 1151 1151 do_action( 'bp_before_group_body' ); … … 1210 1210 * Fires after the display of the group home body. 1211 1211 * 1212 * @since 1.2.0 (BuddyPress)1212 * @since 1.2.0 1213 1213 */ 1214 1214 do_action( 'bp_after_group_body' ); … … 1230 1230 * Fires before the display of a group's header. 1231 1231 * 1232 * @since 1.2.0 (BuddyPress)1232 * @since 1.2.0 1233 1233 */ 1234 1234 do_action( 'bp_before_group_header' ); … … 1240 1240 * Fires after the display of a group's header. 1241 1241 * 1242 * @since 1.2.0 (BuddyPress)1242 * @since 1.2.0 1243 1243 */ 1244 1244 do_action( 'bp_after_group_header' ); -
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 -
trunk/src/bp-templates/bp-nouveau/includes/members/template-tags.php
r11985 r12008 19 19 * Fires at the begining of the templates BP injected content. 20 20 * 21 * @since 2.3.0 (BuddyPress)21 * @since 2.3.0 22 22 */ 23 23 do_action( 'bp_before_directory_members_page' ); … … 26 26 * Fires before the display of the members. 27 27 * 28 * @since 1.1.0 (BuddyPress)28 * @since 1.1.0 29 29 */ 30 30 do_action( 'bp_before_directory_members' ); … … 33 33 * Fires before the display of the members content. 34 34 * 35 * @since 1.1.0 (BuddyPress)35 * @since 1.1.0 36 36 */ 37 37 do_action( 'bp_before_directory_members_content' ); … … 40 40 * Fires before the display of the members list tabs. 41 41 * 42 * @since 1.8.0 (BuddyPress)42 * @since 1.8.0 43 43 */ 44 44 do_action( 'bp_before_directory_members_tabs' ); … … 55 55 * Fires and displays the members content. 56 56 * 57 * @since 1.1.0 (BuddyPress)57 * @since 1.1.0 58 58 */ 59 59 do_action( 'bp_directory_members_content' ); … … 62 62 * Fires after the display of the members content. 63 63 * 64 * @since 1.1.0 (BuddyPress)64 * @since 1.1.0 65 65 */ 66 66 do_action( 'bp_after_directory_members_content' ); … … 69 69 * Fires after the display of the members. 70 70 * 71 * @since 1.1.0 (BuddyPress)71 * @since 1.1.0 72 72 */ 73 73 do_action( 'bp_after_directory_members' ); … … 76 76 * Fires at the bottom of the members directory template file. 77 77 * 78 * @since 1.5.0 (BuddyPress)78 * @since 1.5.0 79 79 */ 80 80 do_action( 'bp_after_directory_members_page' ); … … 150 150 * Fires in the member header actions section. 151 151 * 152 * @since 1.2.6 (BuddyPress)152 * @since 1.2.6 153 153 */ 154 154 do_action( 'bp_member_header_actions' ); … … 200 200 * Fires inside the members action HTML markup to display actions. 201 201 * 202 * @since 1.1.0 (BuddyPress)202 * @since 1.1.0 203 203 */ 204 204 do_action( $action ); … … 603 603 * Fires before the display of member body content. 604 604 * 605 * @since 1.2.0 (BuddyPress)605 * @since 1.2.0 606 606 */ 607 607 do_action( 'bp_before_member_body' ); … … 637 637 * Fires after the display of member body content. 638 638 * 639 * @since 1.2.0 (BuddyPress)639 * @since 1.2.0 640 640 */ 641 641 do_action( 'bp_after_member_body' ); … … 659 659 * Fires before the display of a member's header. 660 660 * 661 * @since 1.2.0 (BuddyPress)661 * @since 1.2.0 662 662 */ 663 663 do_action( 'bp_before_member_header' ); … … 669 669 * Fires after the display of a member's header. 670 670 * 671 * @since 1.2.0 (BuddyPress)671 * @since 1.2.0 672 672 */ 673 673 do_action( 'bp_after_member_header' ); … … 926 926 function bp_nouveau_get_wp_profile_field_id() { 927 927 $field = bp_nouveau()->members->wp_profile_current; 928 929 /** 930 * Filters the WP profile field ID used for BuddyPress Nouveau. 931 * 932 * @since 3.0.0 933 * 934 * @param string $id Field ID. 935 */ 928 936 return apply_filters( 'bp_nouveau_get_wp_profile_field_id', $field->id ); 929 937 } … … 947 955 function bp_nouveau_get_wp_profile_field_label() { 948 956 $field = bp_nouveau()->members->wp_profile_current; 957 958 /** 959 * Filters the WP profile field label used for BuddyPress Nouveau. 960 * 961 * @since 3.0.0 962 * 963 * @param string $label Field label. 964 */ 949 965 return apply_filters( 'bp_nouveau_get_wp_profile_field_label', $field->label ); 950 966 } … … 963 979 * Filters a WP profile field value. 964 980 * 965 * @param string $data The profile field value. 981 * @since 3.0.0 982 * 983 * @param string $data The profile field data value. 966 984 */ 967 985 apply_filters( 'bp_nouveau_get_wp_profile_field_data', $data ), -
trunk/src/bp-templates/bp-nouveau/includes/messages/ajax.php
r11903 r12008 68 68 69 69 // Trim @ from usernames 70 /** 71 * Filters the results of trimming of `@` characters from usernames for who is set to receive a message. 72 * 73 * @since 3.0.0 74 * 75 * @param array $value Array of trimmed usernames. 76 * @param array $value Array of un-trimmed usernames submitted. 77 */ 70 78 $recipients = apply_filters( 'bp_messages_recipients', array_map( function( $username ) { 71 79 return trim( $username, '@' ); -
trunk/src/bp-templates/bp-nouveau/includes/messages/functions.php
r11899 r12008 365 365 } 366 366 367 /** 368 * Filters the message date for BuddyPress Nouveau display. 369 * 370 * @since 3.0.0 371 * 372 * @param string $value Internationalization-ready formatted date value. 373 * @param mixed $calculated_time Calculated time. 374 * @param string $date Date value. 375 * @param string $date_format Format to convert the calcuated date to. 376 */ 367 377 return apply_filters( 'bp_nouveau_get_message_date', date_i18n( $date_format, $calculated_time, true ), $calculated_time, $date, $date_format ); 368 378 } -
trunk/src/bp-templates/bp-nouveau/includes/template-tags.php
r11989 r12008 28 28 $hook = join( '_', $pieces ); 29 29 30 /** 31 * Fires inside the `bp_nouveau_hook()` function. 32 * 33 * @since 3.0.0 34 */ 30 35 do_action( $hook ); 31 36 } … … 208 213 * Filters the 'template_notices' feedback message content. 209 214 * 210 * @since 1.5.5 (BuddyPress)215 * @since 1.5.5 211 216 * 212 217 * @param string $template_message Feedback message content. … … 285 290 286 291 if ( ! empty( $feedback['before'] ) ) { 292 293 /** 294 * Fires before display of a feedback message to the user. 295 * 296 * This is a dynamic filter that is dependent on the "before" value provided by bp_nouveau_get_user_feedback(). 297 * 298 * @since 3.0.0 299 */ 287 300 do_action( $feedback['before'] ); 288 301 } … … 291 304 292 305 bp_get_template_part( 306 293 307 /** 294 308 * Filter here if you wish to use a different templates than the notice one. … … 302 316 303 317 if ( ! empty( $feedback['after'] ) ) { 318 319 /** 320 * Fires before display of a feedback message to the user. 321 * 322 * This is a dynamic filter that is dependent on the "after" value provided by bp_nouveau_get_user_feedback(). 323 * 324 * @since 3.0.0 325 */ 304 326 do_action( $feedback['after'] ); 305 327 } … … 324 346 * Fires before the start of the component loop. 325 347 * 348 * This is a variable hook that is dependent on the current component. 349 * 326 350 * @since 1.2.0 327 351 */ … … 343 367 /** 344 368 * Fires after the finish of the component loop. 369 * 370 * This is a variable hook that is dependent on the current component. 345 371 * 346 372 * @since 1.2.0 … … 636 662 * Filter arguments for full-size avatars. 637 663 * 638 * @param array $args 664 * @since 3.0.0 665 * 666 * @param array $args { 667 * @param string $type Avatar type. 668 * @param int $width Avatar width value. 669 * @param int $height Avatar height value. 670 * } 639 671 */ 640 672 return apply_filters( 'bp_nouveau_avatar_args', array( … … 1397 1429 1398 1430 } else { 1431 /** 1432 * Filters the BuddyPress Nouveau single item setting ID. 1433 * 1434 * @since 3.0.0 1435 * 1436 * @param string $value Setting ID. 1437 */ 1399 1438 $customizer_option = apply_filters( 'bp_nouveau_single_item_display_settings_id', '' ); 1400 1439 } … … 1437 1476 $class = array_map( 'sanitize_html_class', $classes ); 1438 1477 1478 /** 1479 * Filters the final results for BuddyPress Nouveau container classes. 1480 * 1481 * This filter will return a single string of concatenated classes to be used. 1482 * 1483 * @since 3.0.0 1484 * 1485 * @param string $value Concatenated classes. 1486 * @param array $classes Array of classes that were concatenated. 1487 */ 1439 1488 return apply_filters( 'bp_nouveau_get_container_classes', join( ' ', $class ), $classes ); 1440 1489 } … … 1502 1551 $class = array_map( 'sanitize_html_class', $classes ); 1503 1552 1553 /** 1554 * Filters the final results for BuddyPress Nouveau single item nav classes. 1555 * 1556 * This filter will return a single string of concatenated classes to be used. 1557 * 1558 * @since 3.0.0 1559 * 1560 * @param string $value Concatenated classes. 1561 * @param array $classes Array of classes that were concatenated. 1562 */ 1504 1563 return apply_filters( 'bp_nouveau_get_single_item_nav_classes', join( ' ', $class ), $classes ); 1505 1564 } … … 1552 1611 $class = array_map( 'sanitize_html_class', $classes ); 1553 1612 1613 /** 1614 * Filters the final results for BuddyPress Nouveau single item subnav classes. 1615 * 1616 * This filter will return a single string of concatenated classes to be used. 1617 * 1618 * @since 3.0.0 1619 * 1620 * @param string $value Concatenated classes. 1621 * @param array $classes Array of classes that were concatenated. 1622 */ 1554 1623 return apply_filters( 'bp_nouveau_get_single_item_subnav_classes', join( ' ', $class ), $classes ); 1555 1624 } … … 1583 1652 $class = array_map( 'sanitize_html_class', $classes ); 1584 1653 1654 /** 1655 * Filters the final results for BuddyPress Nouveau group creation step classes. 1656 * 1657 * This filter will return a single string of concatenated classes to be used. 1658 * 1659 * @since 3.0.0 1660 * 1661 * @param string $value Concatenated classes. 1662 * @param array $classes Array of classes that were concatenated. 1663 */ 1585 1664 return apply_filters( 'bp_nouveau_get_group_create_steps_classes', join( ' ', $class ), $classes ); 1586 1665 } … … 1606 1685 $object = 'dir'; 1607 1686 } else { 1687 1688 /** 1689 * Filters the search primary object if no other was found. 1690 * 1691 * @since 3.0.0 1692 * 1693 * @param string $object Search object. 1694 */ 1608 1695 $object = apply_filters( 'bp_nouveau_get_search_primary_object', $object ); 1609 1696 } … … 1636 1723 $objects['secondary'] = bp_current_action(); 1637 1724 } else { 1725 1726 /** 1727 * Filters the search objects if no others were found. 1728 * 1729 * @since 3.0.0 1730 * 1731 * @param array $objects Search objects. 1732 */ 1638 1733 $objects = apply_filters( 'bp_nouveau_get_search_objects', $objects ); 1639 1734 } … … 1736 1831 * Fires before the display of the activity syndication options. 1737 1832 * 1738 * @since 1.2.0 (BuddyPress)1833 * @since 1.2.0 1739 1834 */ 1740 1835 do_action( 'bp_activity_syndication_options' ); … … 1744 1839 * Fires inside the unordered list displaying blog sub-types. 1745 1840 * 1746 * @since 1.5.0 (BuddyPress)1841 * @since 1.5.0 1747 1842 */ 1748 1843 do_action( 'bp_blogs_directory_blog_sub_types' ); … … 1752 1847 * Fires inside the groups directory group types. 1753 1848 * 1754 * @since 1.2.0 (BuddyPress)1849 * @since 1.2.0 1755 1850 */ 1756 1851 do_action( 'bp_groups_directory_group_types' ); … … 1760 1855 * Fires inside the members directory member sub-types. 1761 1856 * 1762 * @since 1.5.0 (BuddyPress)1857 * @since 1.5.0 1763 1858 */ 1764 1859 do_action( 'bp_members_directory_member_sub_types' ); … … 1768 1863 * Fires inside the syndication options list, after the RSS option. 1769 1864 * 1770 * @since 1.2.0 (BuddyPress)1865 * @since 1.2.0 1771 1866 */ 1772 1867 do_action( 'bp_group_activity_syndication_options' ); … … 1838 1933 1839 1934 if ( isset( $ids[ $component['object'] ] ) ) { 1935 1936 /** 1937 * Filters the container ID for BuddyPress Nouveau filters. 1938 * 1939 * @since 3.0.0 1940 * 1941 * @param string $value ID based on current component object. 1942 */ 1840 1943 return apply_filters( 'bp_nouveau_get_filter_container_id', $ids[ $component['object'] ] ); 1841 1944 } … … 1873 1976 1874 1977 if ( isset( $ids[ $component['object'] ] ) ) { 1978 1979 /** 1980 * Filters the filter ID for BuddyPress Nouveau filters. 1981 * 1982 * @since 3.0.0 1983 * 1984 * @param string $value ID based on current component object. 1985 */ 1875 1986 return apply_filters( 'bp_nouveau_get_filter_id', $ids[ $component['object'] ] ); 1876 1987 } … … 1903 2014 } 1904 2015 2016 /** 2017 * Filters the label for BuddyPress Nouveau filters. 2018 * 2019 * @since 3.0.0 2020 * 2021 * @param string $label Label for BuddyPress Nouveau filter. 2022 */ 1905 2023 return apply_filters( 'bp_nouveau_get_filter_label', $label ); 1906 2024 } … … 2234 2352 * Fires and displays any extra member registration details fields. 2235 2353 * 2236 * @since 1.9.0 (BuddyPress) 2354 * This is a variable hook that depends on the current section. 2355 * 2356 * @since 1.9.0 2237 2357 */ 2238 2358 do_action( "bp_{$section}_fields" ); … … 2253 2373 2254 2374 if ( ! empty( $submit_data['before'] ) ) { 2375 2376 /** 2377 * Fires before display of the submit button. 2378 * 2379 * This is a dynamic filter that is dependent on the "before" value provided by bp_nouveau_get_submit_button(). 2380 * 2381 * @since 3.0.0 2382 */ 2255 2383 do_action( $submit_data['before'] ); 2256 2384 } … … 2267 2395 2268 2396 if ( ! empty( $submit_data['after'] ) ) { 2397 2398 /** 2399 * Fires before display of the submit button. 2400 * 2401 * This is a dynamic filter that is dependent on the "after" value provided by bp_nouveau_get_submit_button(). 2402 * 2403 * @since 3.0.0 2404 */ 2269 2405 do_action( $submit_data['after'] ); 2270 2406 } -
trunk/src/class-buddypress.php
r11981 r12008 400 400 401 401 /** Post types and taxonomies *****************************************/ 402 403 /** 404 * Filters the post type slug for the email component. 405 * 406 * since 2.5.0 407 * 408 * @param string $value Email post type slug. 409 */ 402 410 $this->email_post_type = apply_filters( 'bp_email_post_type', 'bp-email' ); 411 412 /** 413 * Filters the taxonomy slug for the email type component. 414 * 415 * @since 2.5.0 416 * 417 * @param string $value Email type taxonomy slug. 418 */ 403 419 $this->email_taxonomy_type = apply_filters( 'bp_email_tax_type', 'bp-email-type' ); 404 420 }
Note: See TracChangeset
for help on using the changeset viewer.