diff --git src/bp-templates/bp-legacy/buddypress-functions.php src/bp-templates/bp-legacy/buddypress-functions.php
index 727a16d..b174227 100644
|
|
function bp_legacy_theme_object_template_loader() { |
605 | 605 | $template_part = sanitize_option( 'upload_path', $_POST['template'] ); |
606 | 606 | } |
607 | 607 | |
| 608 | // Allow plugins to filter the template location |
| 609 | $filter_name = 'bp_legacy_theme_' . $object . '_template_loader'; |
| 610 | $template_part = apply_filters( $filter_name, $template_part ); |
| 611 | |
608 | 612 | // Locate the object template |
609 | 613 | bp_get_template_part( $template_part ); |
610 | 614 | exit(); |
… |
… |
function bp_legacy_theme_object_template_loader() { |
617 | 621 | * @since BuddyPress (1.6) |
618 | 622 | */ |
619 | 623 | function bp_legacy_theme_messages_template_loader() { |
620 | | bp_get_template_part( 'members/single/messages/messages-loop' ); |
| 624 | $template = 'members/single/messages/messages-loop'; |
| 625 | $template = apply_filters( 'bp_legacy_theme_messages_template_loader', $template ); |
| 626 | bp_get_template_part( $template ); |
621 | 627 | exit(); |
622 | 628 | } |
623 | 629 | |
… |
… |
function bp_legacy_theme_messages_template_loader() { |
627 | 633 | * @since BuddyPress (2.0.0) |
628 | 634 | */ |
629 | 635 | function bp_legacy_theme_invite_template_loader() { |
630 | | bp_get_template_part( 'groups/single/invites-loop' ); |
| 636 | $template = 'groups/single/invites-loop'; |
| 637 | $template = apply_filters( 'bp_legacy_theme_invite_template_loader', $template ); |
| 638 | bp_get_template_part( $template ); |
631 | 639 | exit(); |
632 | 640 | } |
633 | 641 | |
… |
… |
function bp_legacy_theme_invite_template_loader() { |
637 | 645 | * @since BuddyPress (2.0.0) |
638 | 646 | */ |
639 | 647 | function bp_legacy_theme_requests_template_loader() { |
640 | | bp_get_template_part( 'groups/single/requests-loop' ); |
| 648 | $template = 'groups/single/requests-loop'; |
| 649 | $template = apply_filters( 'bp_legacy_theme_requests_template_loader', $template ); |
| 650 | bp_get_template_part( $template ); |
641 | 651 | exit(); |
642 | 652 | } |
643 | 653 | |