Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/06/2020 09:41:44 PM (6 years ago)
Author:
imath
Message:

BP Nouveau: reposition bp_after_directory_{$component}_page hooks

  • Solves a misposition of the bp_after_directory_{$component}_page template hook for Members, Groups and Blogs components.
  • Adds a new bp_after_directory_activity_page hook to be consistent with the other components directory pages.

Props mo3aser, boonebgorges, espellcaste

Fixes #7995

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/template-tags.php

    r12537 r12567  
    44 *
    55 * @since 3.0.0
    6  * @version 4.0.0
     6 * @version 6.0.0
    77 */
    88
     
    655655
    656656    return (bool) $bp_nouveau->{$component}->directory_vertical_layout;
     657}
     658
     659/**
     660 * Template tag to wrap the Legacy actions that was used
     661 * after the components directory page.
     662 *
     663 * @since 6.0.0
     664 */
     665function bp_nouveau_after_directory_page() {
     666    $component = bp_current_component();
     667
     668    /**
     669     * Fires at the bottom of the activity, members, groups and blogs directory template file.
     670     *
     671     * @since 1.5.0 Added to the members, groups directory template file.
     672     * @since 2.3.0 Added to the blogs directory template file.
     673     * @since 6.0.0 Added to the activity directory template file.
     674     */
     675    do_action( "bp_after_directory_{$component}_page" );
    657676}
    658677
Note: See TracChangeset for help on using the changeset viewer.