- Timestamp:
- 04/28/2018 01:32:52 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note: See TracChangeset
for help on using the changeset viewer.