Changeset 6573 for trunk/src/includes/forums/template.php
- Timestamp:
- 06/16/2017 09:20:52 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/forums/template.php
r6551 r6573 17 17 * 18 18 * @since 2.0.0 bbPress (r2857) 19 *20 * @uses bbp_get_forum_post_type() To get the forum post type21 19 */ 22 20 function bbp_forum_post_type() { … … 28 26 * @since 2.0.0 bbPress (r2857) 29 27 * 30 * @uses apply_filters() Calls 'bbp_get_forum_post_type' with the forum31 * post type id32 28 * @return string The unique forum post type id 33 29 */ … … 115 111 * 116 112 * @param array $args All the arguments supported by {@link WP_Query} 117 * @uses WP_Query To make query and get the forums 118 * @uses bbp_get_forum_post_type() To get the forum post type id 119 * @uses bbp_get_forum_id() To get the forum id 120 * @uses get_option() To get the forums per page option 121 * @uses current_user_can() To check if the current user is capable of editing 122 * others' forums 123 * @uses apply_filters() Calls 'bbp_has_forums' with 124 * bbPress::forum_query::have_posts() 125 * and bbPress::forum_query 113 * 126 114 * @return object Multidimensional array of forum information 127 115 */ … … 166 154 * @since 2.0.0 bbPress (r2464) 167 155 * 168 * @uses bbPress:forum_query::have_posts() To check if there are more forums169 * available170 156 * @return object Forum information 171 157 */ … … 188 174 * @since 2.0.0 bbPress (r2464) 189 175 * 190 * @uses bbPress:forum_query::the_post() To get the current forum191 176 * @return object Forum information 192 177 */ … … 203 188 * 204 189 * @param $forum_id Optional. Used to check emptiness 205 * @uses bbp_get_forum_id() To get the forum id206 190 */ 207 191 function bbp_forum_id( $forum_id = 0 ) { … … 214 198 * 215 199 * @param $forum_id Optional. Used to check emptiness 216 * @uses bbPress::forum_query::in_the_loop To check if we're in the loop217 * @uses bbPress::forum_query::post::ID To get the forum id218 * @uses WP_Query::post::ID To get the forum id219 * @uses bbp_is_forum() To check if the search result is a forum220 * @uses bbp_is_single_forum() To check if it's a forum page221 * @uses bbp_is_single_topic() To check if it's a topic page222 * @uses bbp_get_topic_forum_id() To get the topic forum id223 * @uses get_post_field() To get the post's post type224 * @uses apply_filters() Calls 'bbp_get_forum_id' with the forum id and225 * supplied forum id226 200 * @return int The forum id 227 201 */ … … 272 246 * @param string $output Optional. OBJECT, ARRAY_A, or ARRAY_N. Default = OBJECT 273 247 * @param string $filter Optional Sanitation filter. See {@link sanitize_post()} 274 * @uses get_post() To get the forum 275 * @uses apply_filters() Calls 'bbp_get_forum' with the forum, output type and 276 * sanitation filter 248 * 277 249 * @return mixed Null if error or forum (in specified form) if success 278 250 */ … … 321 293 * @param string $redirect_to Optional. Pass a redirect value for use with 322 294 * shortcodes and other fun things. 323 * @uses bbp_get_forum_permalink() To get the permalink324 295 */ 325 296 function bbp_forum_permalink( $forum_id = 0, $redirect_to = '' ) { … … 334 305 * @param string $redirect_to Optional. Pass a redirect value for use with 335 306 * shortcodes and other fun things. 336 * @uses bbp_get_forum_id() To get the forum id 337 * @uses get_permalink() Get the permalink of the forum 338 * @uses apply_filters() Calls 'bbp_get_forum_permalink' with the forum 339 * link 307 * 340 308 * @return string Permanent link to forum 341 309 */ … … 362 330 * 363 331 * @param int $forum_id Optional. Forum id 364 * @uses bbp_get_forum_title() To get the forum title365 332 */ 366 333 function bbp_forum_title( $forum_id = 0 ) { … … 373 340 * 374 341 * @param int $forum_id Optional. Forum id 375 * @uses bbp_get_forum_id() To get the forum id376 * @uses get_the_title() To get the forum title377 * @uses apply_filters() Calls 'bbp_get_forum_title' with the title378 342 * @return string Title of forum 379 343 */ … … 402 366 * 403 367 * @param string $title Default text to use as title 404 *405 * @uses bbp_get_page_by_path() Check if page exists at root path406 * @uses get_the_title() Use the page title at the root path407 * @uses get_post_type_object() Load the post type object408 * @uses bbp_get_forum_post_type() Get the forum post type ID409 * @uses get_post_type_labels() Get labels for forum post type410 * @uses apply_filters() Allow output to be manipulated411 368 * 412 369 * @return string The forum archive title … … 439 396 * 440 397 * @param int $forum_id Optional. Topic id 441 * @uses bbp_get_forum_content() To get the forum content442 398 */ 443 399 function bbp_forum_content( $forum_id = 0 ) { … … 450 406 * 451 407 * @param int $forum_id Optional. Topic id 452 * @uses bbp_get_forum_id() To get the forum id 453 * @uses post_password_required() To check if the forum requires pass 454 * @uses get_the_password_form() To get the password form 455 * @uses get_post_field() To get the content post field 456 * @uses apply_filters() Calls 'bbp_get_forum_content' with the content 457 * and forum id 408 * 458 409 * @return string Content of the forum 459 410 */ … … 477 428 * @since 2.1.0 bbPress (r3653) 478 429 * 479 * @uses do_action()480 430 * @todo Links and filter 481 431 */ … … 489 439 * @since 2.0.0 bbPress (r2860) 490 440 * 491 * @uses bbp_get_forum_last_active_id() To get the forum's last active id492 441 * @param int $forum_id Optional. Forum id 493 442 */ … … 501 450 * 502 451 * @param int $forum_id Optional. Forum id 503 * @uses bbp_get_forum_id() To get the forum id504 * @uses get_post_meta() To get the forum's last active id505 * @uses apply_filters() Calls 'bbp_get_forum_last_active_id' with506 452 * the last active id and forum id 507 453 * @return int Forum's last active id … … 520 466 * @since 2.0.0 bbPress (r2464) 521 467 * 522 * @uses bbp_get_forum_last_active_time() To get the forum freshness523 468 * @param int $forum_id Optional. Forum id 524 469 */ … … 532 477 * 533 478 * @param int $forum_id Optional. Forum id 534 * @uses bbp_get_forum_id() To get the forum id535 * @uses get_post_meta() To retrieve forum last active meta536 * @uses bbp_get_forum_last_reply_id() To get forum's last reply id537 * @uses get_post_field() To get the post date of the reply538 * @uses bbp_get_forum_last_topic_id() To get forum's last topic id539 * @uses bbp_get_topic_last_active_time() To get time when the topic was540 * last active541 * @uses bbp_convert_date() To convert the date542 * @uses bbp_get_time_since() To get time in since format543 * @uses apply_filters() Calls 'bbp_get_forum_last_active' with last544 * active time and forum id545 479 * @return string Forum last update date/time (freshness) 546 480 */ … … 577 511 * 578 512 * @param int $forum_id Optional. Forum id 579 * @uses bbp_get_forum_freshness_link() To get the forum freshness link580 513 */ 581 514 function bbp_forum_freshness_link( $forum_id = 0) { … … 590 523 * 591 524 * @param int $forum_id Optional. Forum id 592 * @uses bbp_get_forum_id() To get the forum id593 * @uses bbp_get_forum_last_active_id() To get the forum last active id594 * @uses bbp_get_forum_last_reply_id() To get the forum last reply id595 * @uses bbp_get_forum_last_topic_id() To get the forum last topic id596 * @uses bbp_get_forum_last_reply_url() To get the forum last reply url597 * @uses bbp_get_forum_last_reply_title() To get the forum last reply598 * title599 * @uses bbp_get_forum_last_topic_permalink() To get the forum last600 * topic permalink601 * @uses bbp_get_forum_last_topic_title() To get the forum last topic602 * title603 * @uses bbp_get_forum_last_active_time() To get the time when the forum604 * was last active605 * @uses apply_filters() Calls 'bbp_get_forum_freshness_link' with the606 * link and forum id607 525 */ 608 526 function bbp_get_forum_freshness_link( $forum_id = 0 ) { … … 645 563 * 646 564 * @param int $forum_id Forum ID 647 * @uses bbp_get_forum_parent_id() To get the forum's parent ID648 565 */ 649 566 function bbp_forum_parent_id( $forum_id = 0 ) { … … 656 573 * 657 574 * @param int $forum_id Optional. Forum id 658 * @uses bbp_get_forum_id() To get the forum id659 * @uses get_post_field() To get the forum parent660 * @uses apply_filters() Calls 'bbp_get_forum_parent' with the parent & forum id661 575 * @return int Forum parent 662 576 */ … … 685 599 * 686 600 * @param int $forum_id Optional. Forum id 687 * @uses bbp_get_forum_id() To get the forum id688 * @uses bbp_get_forum() To get the forum689 * @uses apply_filters() Calls 'bbp_get_forum_ancestors' with the ancestors690 * and forum id691 601 * @return array Forum ancestors 692 602 */ … … 713 623 * 714 624 * @param array $args All the arguments supported by {@link WP_Query} 715 * @uses bbp_get_forum_id() To get the forum id716 * @uses current_user_can() To check if the current user is capable of717 * reading private forums718 * @uses get_posts() To get the subforums719 * @uses apply_filters() Calls 'bbp_forum_get_subforums' with the subforums720 * and the args721 625 * @return mixed false if none, array of subs if yes 722 626 */ … … 790 694 * - show_topic_count - To show forum topic count or not. Defaults to true 791 695 * - show_reply_count - To show forum reply count or not. Defaults to true 792 * @uses bbp_forum_get_subforums() To check if the forum has subforums or not793 * @uses bbp_get_forum_permalink() To get forum permalink794 * @uses bbp_get_forum_title() To get forum title795 * @uses bbp_is_forum_category() To check if a forum is a category796 * @uses bbp_get_forum_topic_count() To get forum topic count797 * @uses bbp_get_forum_reply_count() To get forum reply count798 696 */ 799 697 function bbp_list_forums( $args = array() ) { … … 877 775 * @since 2.5.0 bbPress (r5156) 878 776 * @since 2.6.0 bbPress (r6308) Add 'redirect_to' support 879 *880 * @uses bbp_get_forum_subscription_link()881 777 */ 882 778 function bbp_forum_subscription_link( $args = array() ) { … … 891 787 * @since 2.5.0 bbPress (r5156) 892 788 * @since 2.6.0 bbPress (r6308) Add 'redirect_to' support 893 *894 * @uses bbp_parse_args()895 * @uses bbp_get_user_subscribe_link()896 * @uses apply_filters() Calls 'bbp_get_forum_subscribe_link'897 789 */ 898 790 function bbp_get_forum_subscription_link( $args = array() ) { … … 933 825 * @since 2.0.0 bbPress (r2464) 934 826 * 935 * @uses bbp_get_forum_last_topic_id() To get the forum's last topic id936 827 * @param int $forum_id Optional. Forum id 937 828 */ … … 945 836 * 946 837 * @param int $forum_id Optional. Forum id 947 * @uses bbp_get_forum_id() To get the forum id948 * @uses get_post_meta() To get the forum's last topic id949 * @uses apply_filters() Calls 'bbp_get_forum_last_topic_id' with the950 * forum and topic id951 838 * @return int Forum's last topic id 952 839 */ … … 965 852 * 966 853 * @param int $forum_id Optional. Forum id 967 * @uses bbp_get_forum_last_topic_title() To get the forum's last topic's title968 854 */ 969 855 function bbp_forum_last_topic_title( $forum_id = 0 ) { … … 976 862 * 977 863 * @param int $forum_id Optional. Forum id 978 * @uses bbp_get_forum_id() To get the forum id979 * @uses bbp_get_forum_last_topic_id() To get the forum's last topic id980 * @uses bbp_get_topic_title() To get the topic's title981 * @uses apply_filters() Calls 'bbp_get_forum_last_topic_title' with the982 * topic title and forum id983 864 * @return string Forum's last topic's title 984 865 */ … … 998 879 * 999 880 * @param int $forum_id Optional. Forum id 1000 * @uses bbp_get_forum_last_topic_permalink() To get the forum's last topic's1001 * permanent link1002 881 */ 1003 882 function bbp_forum_last_topic_permalink( $forum_id = 0 ) { … … 1010 889 * 1011 890 * @param int $forum_id Optional. Forum id 1012 * @uses bbp_get_forum_id() To get the forum id1013 * @uses bbp_get_forum_last_topic_id() To get the forum's last topic id1014 * @uses bbp_get_topic_permalink() To get the topic's permalink1015 * @uses apply_filters() Calls 'bbp_get_forum_last_topic_permalink' with1016 * the topic link and forum id1017 891 * @return string Permanent link to topic 1018 892 */ … … 1032 906 * 1033 907 * @param int $forum_id Optional. Forum id 1034 * @uses bbp_get_forum_id() To get the forum id1035 * @uses bbp_get_forum_last_topic_id() To get the forum's last topic id1036 * @uses bbp_get_topic_author_id() To get the topic's author id1037 * @uses apply_filters() Calls 'bbp_get_forum_last_topic_author' with the author1038 * id and forum id1039 908 * @return int Forum's last topic's author id 1040 909 */ … … 1054 923 * 1055 924 * @param int $forum_id Optional. Forum id 1056 * @uses bbp_get_forum_last_topic_author_link() To get the forum's last topic's1057 * author link1058 925 */ 1059 926 function bbp_forum_last_topic_author_link( $forum_id = 0 ) { … … 1066 933 * 1067 934 * @param int $forum_id Optional. Forum id 1068 * @uses bbp_get_forum_id() To get the forum id1069 * @uses bbp_get_forum_last_topic_author_id() To get the forum's last1070 * topic's author id1071 * @uses bbp_get_user_profile_link() To get the author's profile link1072 * @uses apply_filters() Calls 'bbp_get_forum_last_topic_author_link'1073 * with the author link and forum id1074 935 * @return string Forum's last topic's author link 1075 936 */ … … 1090 951 * @since 2.0.0 bbPress (r2464) 1091 952 * 1092 * @uses bbp_get_forum_last_reply_id() To get the forum's last reply id1093 953 * @param int $forum_id Optional. Forum id 1094 954 */ … … 1102 962 * 1103 963 * @param int $forum_id Optional. Forum id 1104 * @uses bbp_get_forum_id() To get the forum id1105 * @uses get_post_meta() To get the forum's last reply id1106 * @uses bbp_get_forum_last_topic_id() To get the forum's last topic id1107 * @uses apply_filters() Calls 'bbp_get_forum_last_reply_id' with1108 * the last reply id and forum id1109 964 * @return int Forum's last reply id 1110 965 */ … … 1121 976 * 1122 977 * @param int $forum_id Optional. Forum id 1123 * @uses bbp_get_forum_last_reply_title() To get the forum's last reply's title1124 978 */ 1125 979 function bbp_forum_last_reply_title( $forum_id = 0 ) { … … 1130 984 * 1131 985 * @param int $forum_id Optional. Forum id 1132 * @uses bbp_get_forum_id() To get the forum id1133 * @uses bbp_get_forum_last_reply_id() To get the forum's last reply id1134 * @uses bbp_get_reply_title() To get the reply title1135 * @uses apply_filters() Calls 'bbp_get_forum_last_reply_title' with the1136 * reply title and forum id1137 986 * @return string 1138 987 */ … … 1152 1001 * 1153 1002 * @param int $forum_id Optional. Forum id 1154 * @uses bbp_get_forum_last_reply_permalink() To get the forum last reply link1155 1003 */ 1156 1004 function bbp_forum_last_reply_permalink( $forum_id = 0 ) { … … 1163 1011 * 1164 1012 * @param int $forum_id Optional. Forum id 1165 * @uses bbp_get_forum_id() To get the forum id 1166 * @uses bbp_get_forum_last_reply_id() To get the forum's last reply id 1167 * @uses bbp_get_reply_permalink() To get the reply permalink 1168 * @uses apply_filters() Calls 'bbp_get_forum_last_reply_permalink' with 1169 * the reply link and forum id 1013 * 1170 1014 * @return string Permanent link to the forum's last reply 1171 1015 */ … … 1185 1029 * 1186 1030 * @param int $forum_id Optional. Forum id 1187 * @uses bbp_get_forum_last_reply_url() To get the forum last reply url1188 1031 */ 1189 1032 function bbp_forum_last_reply_url( $forum_id = 0 ) { … … 1196 1039 * 1197 1040 * @param int $forum_id Optional. Forum id 1198 * @uses bbp_get_forum_id() To get the forum id1199 * @uses bbp_get_forum_last_reply_id() To get the forum's last reply id1200 * @uses bbp_get_reply_url() To get the reply url1201 * @uses bbp_get_forum_last_topic_permalink() To get the forum's last1202 * topic's permalink1203 * @uses apply_filters() Calls 'bbp_get_forum_last_reply_url' with the1204 * reply url and forum id1205 1041 * @return string Paginated URL to latest reply 1206 1042 */ … … 1233 1069 * 1234 1070 * @param int $forum_id Optional. Forum id 1235 * @uses bbp_get_forum_last_reply_author_id() To get the forum's last reply1236 * author id1237 1071 */ 1238 1072 function bbp_forum_last_reply_author_id( $forum_id = 0 ) { … … 1245 1079 * 1246 1080 * @param int $forum_id Optional. Forum id 1247 * @uses bbp_get_forum_id() To get the forum id1248 * @uses bbp_get_forum_last_reply_author_id() To get the forum's last1249 * reply's author id1250 * @uses bbp_get_reply_author_id() To get the reply's author id1251 * @uses apply_filters() Calls 'bbp_get_forum_last_reply_author_id' with1252 * the author id and forum id1253 1081 * @return int Forum's last reply author id 1254 1082 */ … … 1268 1096 * 1269 1097 * @param int $forum_id Optional. Forum id 1270 * @uses bbp_get_forum_last_reply_author_link() To get the forum's last reply's1271 * author link1272 1098 */ 1273 1099 function bbp_forum_last_reply_author_link( $forum_id = 0 ) { … … 1280 1106 * 1281 1107 * @param int $forum_id Optional. Forum id 1282 * @uses bbp_get_forum_id() To get the forum id1283 * @uses bbp_get_forum_last_reply_author_id() To get the forum's last1284 * reply's author id1285 * @uses bbp_get_user_profile_link() To get the reply's author's profile1286 * link1287 * @uses apply_filters() Calls 'bbp_get_forum_last_reply_author_link'1288 * with the author link and forum id1289 1108 * @return string Link to author of last reply of forum 1290 1109 */ … … 1306 1125 * 1307 1126 * @param int $forum_id Optional. Topic id 1308 * @uses bbp_get_forum_topics_link() To get the forum topics link1309 1127 */ 1310 1128 function bbp_forum_topics_link( $forum_id = 0 ) { … … 1318 1136 * 1319 1137 * @param int $forum_id Optional. Topic id 1320 * @uses bbp_get_forum_id() To get the forum id1321 * @uses bbp_get_forum_permalink() To get the forum permalink1322 * @uses bbp_get_forum_topic_count() To get the forum topic count1323 * @uses bbp_get_forum_topic_count_hidden() To get the forum hidden1324 * topic count1325 * @uses current_user_can() To check if the current user can edit others1326 * topics1327 * @uses apply_filters() Calls 'bbp_get_forum_topics_link' with the1328 * topics link and forum id1329 1138 */ 1330 1139 function bbp_get_forum_topics_link( $forum_id = 0 ) { … … 1365 1174 * @param int $forum_id Optional. Forum id to check 1366 1175 * @param boolean $integer Optional. Whether or not to format the result 1367 * @uses bbp_get_forum_subforum_count() To get the forum's subforum count1368 1176 */ 1369 1177 function bbp_forum_subforum_count( $forum_id = 0, $integer = false ) { … … 1377 1185 * @param int $forum_id Optional. Forum id 1378 1186 * @param boolean $integer Optional. Whether or not to format the result 1379 * @uses bbp_get_forum_id() To get the forum id1380 * @uses get_post_meta() To get the subforum count1381 * @uses apply_filters() Calls 'bbp_get_forum_subforum_count' with the1382 * subforum count and forum id1383 1187 * @return int Forum's subforum count 1384 1188 */ … … 1401 1205 * @param bool $total_count Optional. To get the total count or normal count? 1402 1206 * @param boolean $integer Optional. Whether or not to format the result 1403 * @uses bbp_get_forum_topic_count() To get the forum topic count1404 1207 */ 1405 1208 function bbp_forum_topic_count( $forum_id = 0, $total_count = true, $integer = false ) { … … 1415 1218 * count? Defaults to total. 1416 1219 * @param boolean $integer Optional. Whether or not to format the result 1417 * @uses bbp_get_forum_id() To get the forum id1418 * @uses get_post_meta() To get the forum topic count1419 * @uses apply_filters() Calls 'bbp_get_forum_topic_count' with the1420 * topic count and forum id1421 1220 * @return int Forum topic count 1422 1221 */ … … 1440 1239 * @param bool $total_count Optional. To get the total count or normal count? 1441 1240 * @param boolean $integer Optional. Whether or not to format the result 1442 * @uses bbp_get_forum_reply_count() To get the forum reply count1443 1241 */ 1444 1242 function bbp_forum_reply_count( $forum_id = 0, $total_count = true, $integer = false ) { … … 1454 1252 * count? 1455 1253 * @param boolean $integer Optional. Whether or not to format the result 1456 * @uses bbp_get_forum_id() To get the forum id1457 * @uses get_post_meta() To get the forum reply count1458 * @uses apply_filters() Calls 'bbp_get_forum_reply_count' with the1459 * reply count and forum id1460 1254 * @return int Forum reply count 1461 1255 */ … … 1479 1273 * @param bool $total_count Optional. To get the total count or normal count? 1480 1274 * @param boolean $integer Optional. Whether or not to format the result 1481 * @uses bbp_get_forum_post_count() To get the forum post count1482 1275 */ 1483 1276 function bbp_forum_post_count( $forum_id = 0, $total_count = true, $integer = false ) { … … 1493 1286 * count? 1494 1287 * @param boolean $integer Optional. Whether or not to format the result 1495 * @uses bbp_get_forum_id() To get the forum id1496 * @uses bbp_get_forum_topic_count() To get the topic count1497 * @uses bbp_get_forum_reply_count() To get the reply count1498 * @uses apply_filters() Calls 'bbp_get_forum_post_count' with the1499 * post count and forum id1500 1288 * @return int Forum post count 1501 1289 */ … … 1520 1308 * @param int $forum_id Optional. Topic id 1521 1309 * @param boolean $integer Optional. Whether or not to format the result 1522 * @uses bbp_get_forum_topic_count_hidden() To get the forum hidden topic count1523 1310 */ 1524 1311 function bbp_forum_topic_count_hidden( $forum_id = 0, $integer = false ) { … … 1533 1320 * @param int $forum_id Optional. Topic id 1534 1321 * @param boolean $integer Optional. Whether or not to format the result 1535 * @uses bbp_get_forum_id() To get the forum id1536 * @uses get_post_meta() To get the hidden topic count1537 * @uses apply_filters() Calls 'bbp_get_forum_topic_count_hidden' with1538 * the hidden topic count and forum id1539 1322 * @return int Topic hidden topic count 1540 1323 */ … … 1555 1338 * 1556 1339 * @param int $forum_id Optional. Forum id 1557 * @uses bbp_get_forum_status() To get the forum status1558 1340 */ 1559 1341 function bbp_forum_status( $forum_id = 0 ) { … … 1566 1348 * 1567 1349 * @param int $forum_id Optional. Forum id 1568 * @uses bbp_get_forum_id() To get the forum id1569 * @uses get_post_status() To get the forum's status1570 * @uses apply_filters() Calls 'bbp_get_forum_status' with the status1571 * and forum id1572 1350 * @return string Status of forum 1573 1351 */ … … 1590 1368 * 1591 1369 * @param int $forum_id Optional. Forum id 1592 * @uses bbp_get_forum_visibility() To get the forum visibility1593 1370 */ 1594 1371 function bbp_forum_visibility( $forum_id = 0 ) { … … 1601 1378 * 1602 1379 * @param int $forum_id Optional. Forum id 1603 * @uses bbp_get_forum_id() To get the forum id1604 * @uses get_post_status() To get the forum's status1605 * @uses apply_filters() Calls 'bbp_get_forum_visibility' with the visibility1606 * and forum id1607 1380 * @return string Status of forum 1608 1381 */ … … 1621 1394 * 1622 1395 * @param int $forum_id Optional. Forum id 1623 * @uses bbp_get_forum_type() To get the forum type1624 1396 */ 1625 1397 function bbp_forum_type( $forum_id = 0 ) { … … 1632 1404 * 1633 1405 * @param int $forum_id Optional. Forum id 1634 * @uses get_post_meta() To get the forum category meta1635 1406 * @return bool Whether the forum is a category or not 1636 1407 */ … … 1653 1424 * 1654 1425 * @param int $forum_id Optional. Forum id 1655 * @uses bbp_get_forum_type() To get the forum type1656 1426 * @return bool Whether the forum is a category or not 1657 1427 */ … … 1673 1443 * @param bool $check_ancestors Check if the ancestors are open (only 1674 1444 * if they're a category) 1675 * @uses bbp_is_forum_closed() To check if the forum is closed1676 1445 * @return bool Whether the forum is open or not 1677 1446 */ … … 1688 1457 * @param bool $check_ancestors Check if the ancestors are closed (only 1689 1458 * if they're a category) 1690 * @uses bbp_get_forum_id() To get the forum ID1691 * @uses bbp_is_forum_status() To check the forum status1692 1459 * @return bool True if closed, false if not 1693 1460 */ … … 1714 1481 * 'OR' means only one forum from the tree needs to match; 1715 1482 * 'AND' means all forums must match. The default is 'AND'. 1716 * @uses bbp_get_forum_id() To get the forum ID1717 * @uses bbp_get_forum_status() To get the forum status1718 * @uses bbp_get_forum_ancestors() To get the forum ancestors1719 * @uses bbp_is_forum_category() To check the forum type1720 1483 * @return bool True if match, false if not 1721 1484 */ … … 1785 1548 * @param int $forum_id Optional. Forum id 1786 1549 * @param bool $check_ancestors Check if the ancestors are public 1787 * @uses bbp_get_forum_id() To get the forum ID1788 * @uses bbp_is_forum_visibility() To check the forum visibility ID1789 1550 * @return bool True if closed, false if not 1790 1551 */ … … 1808 1569 * @param int $forum_id Optional. Forum id 1809 1570 * @param bool $check_ancestors Check if the ancestors are private 1810 * @uses bbp_get_forum_id() To get the forum ID1811 * @uses bbp_is_forum_visibility() To check the forum visibility ID1812 1571 * @return bool True if private, false if not 1813 1572 */ … … 1832 1591 * @param bool $check_ancestors Check if the ancestors are private (only if 1833 1592 * they're a category) 1834 * @uses bbp_get_forum_id() To get the forum ID1835 * @uses bbp_is_forum_visibility() To check the forum visibility ID1836 1593 * @return bool True if hidden, false if not 1837 1594 */ … … 1859 1616 * 'OR' means only one forum from the tree needs to match; 1860 1617 * 'AND' means all forums must match. The default is 'AND'. 1861 * @uses bbp_get_forum_id() To get the forum ID1862 * @uses bbp_get_forum_visibility() To get the forum visibility1863 * @uses bbp_get_forum_ancestors() To get the forum ancestors1864 * @uses bbp_is_forum() To check the post type1865 1618 * @return bool True if match, false if not 1866 1619 */ … … 1931 1684 * 1932 1685 * @param int $forum_id Optional. Forum id 1933 * @uses bbp_get_forum_author_id() To get the forum author id1934 1686 */ 1935 1687 function bbp_forum_author_id( $forum_id = 0 ) { … … 1942 1694 * 1943 1695 * @param int $forum_id Optional. Forum id 1944 * @uses bbp_get_forum_id() To get the forum id1945 * @uses get_post_field() To get the forum author id1946 * @uses apply_filters() Calls 'bbp_get_forum_author_id' with the author1947 1696 * id and forum id 1948 1697 * @return string Author of forum … … 1962 1711 * 1963 1712 * @param int $forum_id Optional. Forum id 1964 * @uses bbp_get_forum_author() To get the forum author1965 1713 */ 1966 1714 function bbp_forum_author_display_name( $forum_id = 0 ) { … … 1973 1721 * 1974 1722 * @param int $forum_id Optional. Forum id 1975 * @uses bbp_get_forum_id() To get the forum id1976 * @uses bbp_get_forum_author_id() To get the forum author id1977 * @uses get_the_author_meta() To get the display name of the author1978 * @uses apply_filters() Calls 'bbp_get_forum_author' with the author1979 * and forum id1980 1723 * @return string Author of forum 1981 1724 */ … … 1997 1740 * @param int $forum_id 1998 1741 * 1999 * @uses bbp_is_forum_private()2000 * @uses current_user_can()2001 *2002 1742 * @return string 2003 1743 */ … … 2018 1758 * @param string $author_link 2019 1759 * @param array $args 2020 *2021 * @uses bbp_is_forum_private()2022 * @uses get_post_field()2023 * @uses bbp_get_topic_post_type()2024 * @uses bbp_is_forum_private()2025 * @uses bbp_get_topic_forum_id()2026 * @uses bbp_get_reply_post_type()2027 * @uses bbp_get_reply_forum_id()2028 1760 * 2029 1761 * @return string … … 2073 1805 * @param int $forum_id Optional. Forum ID. 2074 1806 * @param array Extra classes you can pass when calling this function 2075 * @uses bbp_get_forum_class() To get the row class of the forum2076 1807 */ 2077 1808 function bbp_forum_class( $forum_id = 0, $classes = array() ) { … … 2085 1816 * @param int $forum_id Optional. Forum ID 2086 1817 * @param array Extra classes you can pass when calling this function 2087 * @uses bbp_get_forum_id() To validate the forum id2088 * @uses bbp_is_forum_category() To see if forum is a category2089 * @uses bbp_get_forum_status() To get the forum status2090 * @uses bbp_get_forum_visibility() To get the forum visibility2091 * @uses bbp_get_forum_parent_id() To get the forum parent id2092 * @uses get_post_class() To get all the classes including ours2093 * @uses apply_filters() Calls 'bbp_get_forum_class' with the classes2094 1818 * @return string Row class of the forum 2095 1819 */ … … 2129 1853 * 2130 1854 * @param array $args Arguments passed to alter output 2131 * @uses bbp_get_single_forum_description() Return the eventual output2132 1855 */ 2133 1856 function bbp_single_forum_description( $args = array() ) { … … 2145 1868 * - after: After the text 2146 1869 * - size: Size of the avatar 2147 * @uses bbp_get_forum_id() To get the forum id2148 * @uses bbp_get_forum_topic_count() To get the forum topic count2149 * @uses bbp_get_forum_reply_count() To get the forum reply count2150 * @uses bbp_get_forum_freshness_link() To get the forum freshness link2151 * @uses bbp_get_forum_last_active_id() To get the forum last active id2152 * @uses bbp_get_author_link() To get the author link2153 * @uses add_filter() To add the 'view all' filter back2154 * @uses apply_filters() Calls 'bbp_get_single_forum_description' with2155 * the description and args2156 1870 * @return string Filtered forum description 2157 1871 */ … … 2245 1959 * 2246 1960 * @since 2.1.0 bbPress (r3551) 2247 *2248 * @uses bbp_get_form_forum_title() To get the value of forum title field2249 1961 */ 2250 1962 function bbp_form_forum_title() { … … 2256 1968 * @since 2.1.0 bbPress (r3551) 2257 1969 * 2258 * @uses bbp_is_forum_edit() To check if it's forum edit page2259 * @uses apply_filters() Calls 'bbp_get_form_forum_title' with the title2260 1970 * @return string Value of forum title field 2261 1971 */ … … 2283 1993 * 2284 1994 * @since 2.1.0 bbPress (r3551) 2285 *2286 * @uses bbp_get_form_forum_content() To get value of forum content field2287 1995 */ 2288 1996 function bbp_form_forum_content() { … … 2294 2002 * @since 2.1.0 bbPress (r3551) 2295 2003 * 2296 * @uses bbp_is_forum_edit() To check if it's the forum edit page2297 * @uses apply_filters() Calls 'bbp_get_form_forum_content' with the content2298 2004 * @return string Value of forum content field 2299 2005 */ … … 2321 2027 * 2322 2028 * @since 2.6.0 bbPress (r5837) 2323 *2324 * @uses bbp_get_form_forum_moderators() To get the value of forum moderators field2325 2029 */ 2326 2030 function bbp_form_forum_moderators() { … … 2331 2035 * 2332 2036 * @since 2.6.0 bbPress (r5837) 2333 *2334 * @uses bbp_is_forum_edit() To check if it's the forum edit page2335 * @uses apply_filters() Calls 'bbp_get_form_forum_mods' with the mods2336 2037 * 2337 2038 * @return string Value of forum mods field … … 2376 2077 * 2377 2078 * @since 2.1.0 bbPress (r3551) 2378 *2379 * @uses bbp_get_form_forum_parent() To get the topic's forum id2380 2079 */ 2381 2080 function bbp_form_forum_parent() { … … 2387 2086 * @since 2.1.0 bbPress (r3551) 2388 2087 * 2389 * @uses bbp_is_topic_edit() To check if it's the topic edit page2390 * @uses bbp_get_forum_parent_id() To get the topic forum id2391 * @uses apply_filters() Calls 'bbp_get_form_forum_parent' with the forum2392 2088 * @return string Value of topic content field 2393 2089 */ … … 2415 2111 * 2416 2112 * @since 2.1.0 bbPress (r3563) 2417 *2418 * @uses bbp_get_form_forum_type() To get the topic's forum id2419 2113 */ 2420 2114 function bbp_form_forum_type() { … … 2426 2120 * @since 2.1.0 bbPress (r3563) 2427 2121 * 2428 * @uses bbp_is_topic_edit() To check if it's the topic edit page2429 * @uses bbp_get_forum_type_id() To get the topic forum id2430 * @uses apply_filters() Calls 'bbp_get_form_forum_type' with the forum2431 2122 * @return string Value of topic content field 2432 2123 */ … … 2454 2145 * 2455 2146 * @since 2.1.0 bbPress (r3563) 2456 *2457 * @uses bbp_get_form_forum_visibility() To get the topic's forum id2458 2147 */ 2459 2148 function bbp_form_forum_visibility() { … … 2465 2154 * @since 2.1.0 bbPress (r3563) 2466 2155 * 2467 * @uses bbp_is_topic_edit() To check if it's the topic edit page2468 * @uses bbp_get_forum_visibility_id() To get the topic forum id2469 * @uses apply_filters() Calls 'bbp_get_form_forum_visibility' with the forum2470 2156 * @return string Value of topic content field 2471 2157 */ … … 2493 2179 * 2494 2180 * @since 2.5.0 bbPress (r5156) 2495 *2496 * @uses bbp_get_form_forum_subscribed() To get the subscribed checkbox value2497 2181 */ 2498 2182 function bbp_form_forum_subscribed() { … … 2504 2188 * @since 2.5.0 bbPress (r5156) 2505 2189 * 2506 * @uses bbp_is_forum_edit() To check if it's the forum edit page2507 * @uses bbp_get_global_post_field() To get current post author2508 * @uses bbp_get_current_user_id() To get the current user id2509 * @uses bbp_is_user_subscribed() To check if the user is subscribed2510 * @uses apply_filters() Calls 'bbp_get_form_forum_subscribed' with the2511 * option2512 2190 * @return string Checked value of forum subscription 2513 2191 */ … … 2561 2239 * - forum_id: Forum id 2562 2240 * - selected: Override the selected option 2563 * @uses bbp_get_form_forum_type() To get the topic's forum id2564 2241 */ 2565 2242 function bbp_form_forum_type_dropdown( $args = array() ) { … … 2576 2253 * - forum_id: Forum id 2577 2254 * - selected: Override the selected option 2578 * @uses bbp_is_topic_edit() To check if it's the topic edit page2579 * @uses bbp_get_forum_type() To get the forum type2580 * @uses apply_filters()2581 2255 * @return string HTML select list for selecting forum type 2582 2256 */ … … 2651 2325 * - forum_id: Forum id 2652 2326 * - selected: Override the selected option 2653 * @uses bbp_get_form_forum_status() To get the topic's forum id2654 2327 */ 2655 2328 function bbp_form_forum_status_dropdown( $args = array() ) { … … 2666 2339 * - forum_id: Forum id 2667 2340 * - selected: Override the selected option 2668 * @uses bbp_is_topic_edit() To check if it's the topic edit page2669 * @uses bbp_get_forum_status() To get the forum status2670 * @uses apply_filters()2671 2341 * @return string HTML select list for selecting forum status 2672 2342 */ … … 2741 2411 * - forum_id: Forum id 2742 2412 * - selected: Override the selected option 2743 * @uses bbp_get_form_forum_visibility() To get the topic's forum id2744 2413 */ 2745 2414 function bbp_form_forum_visibility_dropdown( $args = array() ) { … … 2756 2425 * - forum_id: Forum id 2757 2426 * - selected: Override the selected option 2758 * @uses bbp_is_topic_edit() To check if it's the topic edit page2759 * @uses bbp_get_forum_visibility() To get the forum visibility2760 * @uses apply_filters()2761 2427 * @return string HTML select list for selecting forum visibility 2762 2428 */ … … 2861 2527 * 2862 2528 * @param type $forum_id Optional. Forum ID. 2863 *2864 * @uses bbp_get_forum_topics_feed_link()2865 2529 */ 2866 2530 function bbp_forum_topics_feed_link( $forum_id = 0 ) { … … 2873 2537 * 2874 2538 * @param int $forum_id Optional. Forum ID. 2875 *2876 * @uses bbp_get_forum_id()2877 * @uses get_option()2878 * @uses trailingslashit()2879 * @uses bbp_get_forum_permalink()2880 * @uses user_trailingslashit()2881 * @uses bbp_get_forum_post_type()2882 * @uses get_post_field()2883 * @uses apply_filters()2884 2539 * 2885 2540 * @return string … … 2924 2579 * 2925 2580 * @param type $forum_id Optional. Forum ID. 2926 *2927 * @uses bbp_get_forum_replies_feed_link()2928 2581 */ 2929 2582 function bbp_forum_replies_feed_link( $forum_id = 0 ) { … … 2936 2589 * 2937 2590 * @param int $forum_id Optional. Forum ID. 2938 *2939 * @uses bbp_get_forum_id()2940 * @uses get_option()2941 * @uses trailingslashit()2942 * @uses bbp_get_forum_permalink()2943 * @uses user_trailingslashit()2944 * @uses bbp_get_forum_post_type()2945 * @uses get_post_field()2946 * @uses apply_filters()2947 2591 * 2948 2592 * @return string
Note: See TracChangeset
for help on using the changeset viewer.