Changeset 10012 for trunk/src/bp-core/bp-core-filters.php
- Timestamp:
- 07/12/2015 12:49:36 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-filters.php
r9848 r10012 75 75 * 76 76 * @param array $pages List of excluded page IDs, as passed to the 77 * 'wp_list_pages_excludes' filter. 77 * 'wp_list_pages_excludes' filter. 78 * 78 79 * @return array The exclude list, with BP's pages added. 79 80 */ … … 114 115 * @uses buddypress() gets BuddyPress main instance 115 116 * 116 * @param object $object The post type object used in the meta box 117 * @return object The $object, with a query argument to remove register and activate pages id. 117 * @param object|null $object The post type object used in the meta box. 118 * 119 * @return object|null The $object, with a query argument to remove register and activate pages id. 118 120 */ 119 121 function bp_core_exclude_pages_from_nav_menu_admin( $object = null ) { … … 157 159 * @since BuddyPress (2.2.0) 158 160 * 159 * @param array $retval CSS classes for the current menu page in the menu 160 * @param WP_Post $page The page properties for the current menu item 161 * @param array $retval CSS classes for the current menu page in the menu. 162 * @param WP_Post $page The page properties for the current menu item. 163 * 161 164 * @return array 162 165 */ … … 214 217 * @since BuddyPress (2.2.0) 215 218 * 216 * @param array $retval CSS classes for the current nav menu item in the menu 217 * @param WP_Post $item The properties for the current nav menu item 219 * @param array $retval CSS classes for the current nav menu item in the menu. 220 * @param WP_Post $item The properties for the current nav menu item. 221 * 218 222 * @return array 219 223 */ … … 258 262 * 259 263 * @param array $comments The array of comments supplied to the comments template. 260 * @param int $post->ID The post ID. 264 * @param int $post_id The post ID. 265 * 261 266 * @return array $comments The modified comment array. 262 267 */ … … 297 302 * are redirected to on login. 298 303 * 299 * @param string $redirect_to The URL to be redirected to, sanitized300 * in wp-login.php.301 * @param string $redirect_to_raw The unsanitized redirect_to URL ($_REQUEST['redirect_to'])302 * @param WP_User $user The WP_User object corresponding to a successfully303 * logged-in user. Otherwise a WP_Error object.304 * @param string $redirect_to The URL to be redirected to, sanitized in wp-login.php. 305 * @param string $redirect_to_raw The unsanitized redirect_to URL ($_REQUEST['redirect_to']). 306 * @param WP_User $user The WP_User object corresponding to a successfully 307 * logged-in user. Otherwise a WP_Error object. 308 * 304 309 * @return string The redirect URL. 305 310 */ … … 323 328 * @since BuddyPress (1.6.0) 324 329 * 325 330 * @param bool $value Whether or not to redirect. 326 331 * @param string $redirect_to Sanitized URL to be redirected to. 327 332 * @param string $redirect_to_raw Unsanitized URL to be redirected to. … … 366 371 * 367 372 * @param string $welcome_email Complete email passed through WordPress. 373 * 368 374 * @return string Filtered $welcome_email with the password replaced 369 * by '[User Set]'.375 * by '[User Set]'. 370 376 */ 371 377 function bp_core_filter_user_welcome_email( $welcome_email ) { … … 400 406 * 401 407 * @param string $welcome_email Complete email passed through WordPress. 402 * @param int $blog_id ID of the blog user is joining. 403 * @param int $user_id ID of the user joining. 404 * @param string $password Password of user. 408 * @param int $blog_id ID of the blog user is joining. 409 * @param int $user_id ID of the user joining. 410 * @param string $password Password of user. 411 * 405 412 * @return string Filtered $welcome_email with $password replaced by '[User Set]'. 406 413 */ … … 429 436 * @see wpmu_signup_blog_notification() for a description of parameters. 430 437 * 431 * @param string $domain The new blog domain.432 * @param string $path The new blog path.433 * @param string $title The site title.434 * @param string $user The user's login name.438 * @param string $domain The new blog domain. 439 * @param string $path The new blog path. 440 * @param string $title The site title. 441 * @param string $user The user's login name. 435 442 * @param string $user_email The user's email address. 436 * @param string $key The activation key created in wpmu_signup_blog() 437 * @param array $meta By default, contains the requested privacy setting and 438 * lang_id. 443 * @param string $key The activation key created in wpmu_signup_blog() 444 * @param array $meta By default, contains the requested privacy setting and 445 * lang_id. 446 * 439 447 * @return bool True on success, false on failure. 440 448 */ … … 511 519 * @param string $subject Subject used in the notification email. 512 520 * @param string $message Message used in the notification email. 513 * @param string domainThe new blog domain.521 * @param string $domain The new blog domain. 514 522 * @param string $path The new blog path. 515 523 * @param string $title The site title. … … 531 539 * @see wpmu_signup_user_notification() for a full description of params. 532 540 * 533 * @param string $user The user's login name.541 * @param string $user The user's login name. 534 542 * @param string $user_email The user's email address. 535 * @param string $key The activation key created in wpmu_signup_user() 536 * @param array $meta By default, an empty array. 537 * @return bool True on success, false on failure. 543 * @param string $key The activation key created in wpmu_signup_user() 544 * @param array $meta By default, an empty array. 545 * 546 * @return bool|string True on success, false on failure. 538 547 */ 539 548 function bp_core_activation_signup_user_notification( $user, $user_email, $key, $meta ) { … … 825 834 * 826 835 * @param string $title_part 836 * 827 837 * @return string 828 838 */ … … 842 852 * 843 853 * @param WP_Post $menu_item The menu item. 844 * @return obj The modified WP_Post object. 854 * 855 * @return WP_Post The modified WP_Post object. 845 856 */ 846 857 function bp_setup_nav_menu_item( $menu_item ) { … … 927 938 * 928 939 * @param string $q SQL query. 940 * 929 941 * @return string 930 942 */ … … 952 964 953 965 /** 954 * Filter the edit post link to avoid its display in BuddyPress pages 966 * Filter the edit post link to avoid its display in BuddyPress pages. 955 967 * 956 968 * @since BuddyPress (2.1.0) … … 958 970 * @param string $edit_link The edit link. 959 971 * @param int $post_id Post ID. 960 * @return mixed Will be a boolean (false) if $post_id is 0. Will be a string (the unchanged edit link) 961 * otherwise 972 * 973 * @return bool|string Will be a boolean (false) if $post_id is 0. Will be a string (the unchanged edit link) 974 * otherwise 962 975 */ 963 976 function bp_core_filter_edit_post_link( $edit_link = '', $post_id = 0 ) { … … 973 986 * mentions suggestions? 974 987 * 975 * @param bool $load_mentions True to load mentions assets, false otherwise. 988 * @since BuddyPress (2.2.0) 989 * 990 * @param bool $load_mentions True to load mentions assets, false otherwise. 976 991 * @param bool $mentions_enabled True if mentions are enabled. 992 * 977 993 * @return bool True if mentions scripts should be loaded. 978 * @since BuddyPress (2.2.0)979 994 */ 980 995 function bp_maybe_load_mentions_scripts_for_blog_content( $load_mentions, $mentions_enabled ) {
Note: See TracChangeset
for help on using the changeset viewer.