- Timestamp:
- 08/31/2016 03:04:39 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/buddypress-functions.php
r11031 r11050 106 106 // Group buttons. 107 107 if ( bp_is_active( 'groups' ) ) { 108 add_action( 'bp_group_header_actions', 'bp_group_join_button', 5 ); 109 add_action( 'bp_group_header_actions', 'bp_group_new_topic_button', 20 ); 110 add_action( 'bp_directory_groups_actions', 'bp_group_join_button' ); 111 add_action( 'bp_groups_directory_group_filter', 'bp_legacy_theme_group_create_nav', 999 ); 108 add_action( 'bp_group_header_actions', 'bp_group_join_button', 5 ); 109 add_action( 'bp_group_header_actions', 'bp_group_new_topic_button', 20 ); 110 add_action( 'bp_directory_groups_actions', 'bp_group_join_button' ); 111 add_action( 'bp_groups_directory_group_filter', 'bp_legacy_theme_group_create_nav', 999 ); 112 add_action( 'bp_after_group_admin_content', 'bp_legacy_groups_admin_screen_hidden_input' ); 112 113 } 113 114 … … 607 608 608 609 /** 610 * Renders the group ID hidden input on group admin screens. 611 * 612 * @since 2.7.0 613 * 614 * @return string html 615 */ 616 function bp_legacy_groups_admin_screen_hidden_input() { 617 ?> 618 <input type="hidden" name="group-id" id="group-id" value="<?php bp_group_id(); ?>" /> 619 <?php 620 } 621 622 /** 609 623 * Add the Create a Site button to the Sites directory title. 610 624 *
Note: See TracChangeset
for help on using the changeset viewer.