Changeset 10821 for trunk/src/bp-forums/bp-forums-functions.php
- Timestamp:
- 05/29/2016 07:08:27 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-forums/bp-forums-functions.php
r10417 r10821 77 77 * Wrapper for {@link bb_get_forum()}. 78 78 * 79 * @since 1.0.0 80 * 79 81 * @param int $forum_id ID of the forum being fetched. 80 82 * @return object bbPress forum object. … … 91 93 * 92 94 * Wrapper for {@link bb_new_forum()}. 95 * 96 * @since 1.0.0 93 97 * 94 98 * @param array|string $args { … … 124 128 * 125 129 * Wrapper for {@link bb_update_forum(}. 130 * 131 * @since 1.2.5 126 132 * 127 133 * @param array|string $args { … … 159 165 * Delete a group forum by the group id. 160 166 * 167 * @since 1.6.0 168 * 161 169 * @param int $group_id ID of the group whose forum is to be deleted. 162 170 */ … … 177 185 /** 178 186 * Fetch a set of forum topics. 187 * 188 * @since 1.1.0 179 189 * 180 190 * @param array|string $args { … … 256 266 * Get additional details about a given forum topic. 257 267 * 268 * @since 1.0.0 269 * 258 270 * @param int $topic_id ID of the topic for which you're fetching details. 259 271 * @return object Details about the topic. … … 274 286 * Wrapper for {@link bb_get_id_from_slug()}. 275 287 * 288 * @since 1.1.0 289 * 276 290 * @param string $topic_slug Slug of the topic. 277 291 * @return int|bool ID of the topic (if found), false on failure. … … 290 304 /** 291 305 * Create a new forum topic. 306 * 307 * @since 1.0.0 292 308 * 293 309 * @param array|string $args { … … 374 390 * Update a topic's details. 375 391 * 392 * @since 1.1.0 393 * 376 394 * @param array|string $args { 377 395 * Array of arguments. … … 419 437 } 420 438 439 /** 440 * Set a topic as sticky/unsticky. 441 * 442 * @since 1.1.0 443 * 444 * @param string $args Array of arguments for sticky topic. 445 * @return bool 446 */ 421 447 function bp_forums_sticky_topic( $args = '' ) { 422 448 … … 440 466 /** 441 467 * Set a topic's open/closed status. 468 * 469 * @since 1.1.0 442 470 * 443 471 * @param array|string $args { … … 470 498 * Delete a topic. 471 499 * 500 * @since 1.1.0 501 * 472 502 * @param array|string $args { 473 503 * @type int $topic_id ID of the topic being deleted. … … 490 520 /** 491 521 * Get a count of the total topics on the site. 522 * 523 * @since 1.2.0 492 524 * 493 525 * @return int $count Total topic count. … … 593 625 * Get a total "Topics Started" count for a given user. 594 626 * 627 * @since 1.2.0 628 * 595 629 * @param int $user_id ID of the user being queried. Falls back on displayed 596 630 * user, then loggedin. … … 694 728 * - information about topic users that may have been deleted/spammed 695 729 * 730 * @since 1.2.0 731 * 696 732 * @param array $topics Array of topics. 697 733 * @return array $topics Topics with BP details added. … … 757 793 * Get the posts belonging to a topic. 758 794 * 795 * @since 1.1.0 796 * 759 797 * @param array|string $args { 760 798 * @type int $topic_id ID of the topic for which posts are being fetched. … … 789 827 * Wrapper for {@link bb_get_post()}. 790 828 * 829 * @since 1.0.0 830 * 791 831 * @param int $post_id ID of the post being fetched. 792 832 * @return object Post object. … … 803 843 * 804 844 * Wrapper for {@link bb_delete_post()}. 845 * 846 * @since 1.1.0 805 847 * 806 848 * @param array|string $args { … … 825 867 /** 826 868 * Create a new post. 869 * 870 * @since 1.1.0 827 871 * 828 872 * @param array|string $args { … … 906 950 * - BP fullname for each poster 907 951 * 952 * @since 1.2.0 953 * 908 954 * @param array $posts List of posts. 909 955 * @return array Posts with BP-data added. … … 959 1005 * Get topic and post counts for a given forum. 960 1006 * 1007 * @since 1.1.0 1008 * 961 1009 * @param int $forum_id ID of the forum. 962 1010 * @return object Object with properties $topics (topic count) and $posts … … 975 1023 /** 976 1024 * Map WordPress caps onto bbPress users, to ensure that they can post. 1025 * 1026 * @since 1.1.0 977 1027 * 978 1028 * @param array $allcaps Array of capabilities.
Note: See TracChangeset
for help on using the changeset viewer.