More Related Content
Similar to Get Thee Behind Me: Making BuddyPress do thine bidding
Similar to Get Thee Behind Me: Making BuddyPress do thine bidding (7)
Get Thee Behind Me: Making BuddyPress do thine bidding
- 1. Get thee behind me! Making BuddyPress do thine bidding Boone Gorges @boonebgorges [email_address] http://teleogistic.net
- 13. define( 'BPLANG', 'rock' ); if ( file_exists( BP_PLUGIN_DIR . '/bp-languages/buddypress-' . BPLANG . '.mo' ) ) { load_textdomain( 'buddypress', BP_PLUGIN_DIR . '/bp-languages/buddypress-' . BPLANG . '.mo' ); } bp-custom.php [plugin-dir]/buddypress/ bp-languages/ buddypress-rock.po
- 23. Hooks and filters function how_bad_ass_am_i() { global $bp; $user_id = $bp->displayed_user->id; $user_name = $bp->displayed_user->fullname; $user_url = $bp->displayed_user->domain; echo '<a href="' . $user_url . '">' . $user_name . '</a> is bad ass #' . $user_id . ' on this site.'; } add_action( 'bp_before_profile_field_content', 'how_bad_ass_am_i' ); bp-custom.php