Skip to:
Content

BuddyPress.org

Changeset 11106


Ignore:
Timestamp:
09/16/2016 06:28:43 PM (5 years ago)
Author:
hnla
Message:

Filter bp_core_directory_page_default_title array

Commit adds ability to filter the default page names array in bp_core_directory_page_default_title() before returning.

Fixes #7259 Props espellcaste

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-functions.php

    r11097 r11106  
    704704 */
    705705function bp_core_get_directory_page_default_titles() {
    706     return array(
     706    $page_default_titles = array(
    707707        'activity' => _x( 'Activity', 'Page title for the Activity directory.',       'buddypress' ),
    708708        'groups'   => _x( 'Groups',   'Page title for the Groups directory.',         'buddypress' ),
     
    712712        'register' => _x( 'Register', 'Page title for the user registration screen.', 'buddypress' ),
    713713    );
     714
     715    /**
     716     * Filters the default page titles array
     717     *
     718     * @since 2.7.0
     719     *
     720     * @param array $page_default_titles the array of default WP (post_title) titles
     721     */
     722    return apply_filters('bp_core_get_directory_page_default_titles', $page_default_titles);
    714723}
    715724
Note: See TracChangeset for help on using the changeset viewer.