Skip to:
Content

BuddyPress.org

Changeset 7367


Ignore:
Timestamp:
09/03/2013 06:54:05 AM (11 years ago)
Author:
johnjamesjacoby
Message:

Rewrite Rules:

Add sub-actions for registering rewrite tags, rules, and permalink structures. See #4954.

Location:
trunk/bp-core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-actions.php

    r6958 r7367  
    7070add_action( 'bp_init', 'bp_core_load_admin_bar_css', 12 );
    7171add_action( 'bp_init', 'bp_add_rewrite_tags',        20 );
     72add_action( 'bp_init', 'bp_add_rewrite_rules',       30 );
     73add_action( 'bp_init', 'bp_add_permastructs',        40 );
    7274
    7375/**
  • trunk/bp-core/bp-core-dependency.php

    r6954 r7367  
    192192
    193193/**
     194 * Add the BuddyPress-specific rewrite rules
     195 *
     196 * @since BuddyPress (1.9)
     197 * @uses do_action() Calls 'bp_add_rewrite_rules'
     198 */
     199function bp_add_rewrite_rules() {
     200    do_action( 'bp_add_rewrite_rules' );
     201}
     202
     203/**
     204 * Add the BuddyPress-specific permalink structures
     205 *
     206 * @since BuddyPress (1.9)
     207 * @uses do_action() Calls 'bp_add_permastructs'
     208 */
     209function bp_add_permastructs() {
     210    do_action( 'bp_add_permastructs' );
     211}
     212
     213/**
    194214 * Piggy back action for BuddyPress sepecific theme actions before the theme has
    195215 * been setup and the theme's functions.php has loaded.
Note: See TracChangeset for help on using the changeset viewer.