Skip to:
Content

Ticket #6588: 6588-01.patch

File 6588-01.patch, 550 bytes (added by hnla, 3 years ago)

Add 'Type' to template stack

  • src/bp-members/bp-members-screens.php

     
    472472                 * @param array $value Array of template paths to add to hierarchy.
    473473                 */
    474474                $new_templates = apply_filters( 'bp_template_hierarchy_members_directory', array(
     475                        'members/index-type-' . sanitize_file_name( bp_get_current_member_type() ) . '.php',
    475476                        'members/index-directory.php'
    476477                ) );
    477478