Skip to:
Content

BuddyPress.org

Changeset 1012


Ignore:
Timestamp:
02/02/2009 08:47:37 PM (13 years ago)
Author:
apeatling
Message:

Adding a require for bp-custom.php where you can place custom actions and filters. This will be loaded before anything else, so you have full access to actions and filters that fire early on.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r974 r1012  
    88if ( file_exists( ABSPATH . 'wp-content/mu-plugins/bp-languages/buddypress-' . get_locale() . '.mo' ) )
    99    load_textdomain( 'buddypress', ABSPATH . 'wp-content/mu-plugins/bp-languages/buddypress-' . get_locale() . '.mo' );
     10
     11/* Place your custom code (actions/filters) in a file called bp-custom.php and it will be loaded before anything else. */
     12if ( file_exists( 'bp-custom.php' ) )
     13    require_once( 'bp-custom.php' );
    1014
    1115/* Functions to handle pretty URLs and breaking them down into usable variables */
Note: See TracChangeset for help on using the changeset viewer.