Skip to:
Content

bbPress.org

Changeset 5854


Ignore:
Timestamp:
07/16/2015 12:58:40 AM (9 years ago)
Author:
johnjamesjacoby
Message:

Templates: Add before & after hooks to user templates parts.

This changeset makes it easier to add custom text & HTML before & after user details.

Props netweb. Fixes #2537.

Location:
trunk/src/templates/default/bbpress
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/bbpress/content-single-user.php

    r5770 r5854  
    1414    <?php do_action( 'bbp_template_notices' ); ?>
    1515
     16    <?php do_action( 'bbp_template_before_user_wrapper' ); ?>
     17
    1618    <div id="bbp-user-wrapper">
    1719
     
    2729        </div>
    2830    </div>
     31
     32    <?php do_action( 'bbp_template_after_user_wrapper' ); ?>
     33
    2934</div>
  • trunk/src/templates/default/bbpress/user-details.php

    r5770 r5854  
    1717            </a>
    1818        </span>
    19     </div><!-- #author-avatar -->
     19    </div>
     20
     21    <?php do_action( 'bbp_template_before_user_details_menu_items' ); ?>
    2022
    2123    <div id="bbp-user-navigation">
     
    6668
    6769        </ul>
    68     </div><!-- #bbp-user-navigation -->
    69 </div><!-- #bbp-single-user-details -->
     70
     71        <?php do_action( 'bbp_template_after_user_details_menu_items' ); ?>
     72
     73    </div>
     74</div>
    7075
    7176<?php do_action( 'bbp_template_after_user_details' );
Note: See TracChangeset for help on using the changeset viewer.