Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 29th, 2010  |  syntax: None  |  size: 0.40 KB  |  views: 157  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. define( 'BPLANG', 'officialmancard' );
  4. if ( file_exists( BP_PLUGIN_DIR . '/bp-languages/buddypress-' . BPLANG . '.mo' ) ) {
  5.     load_textdomain( 'buddypress', BP_PLUGIN_DIR . '/bp-languages/buddypress-' . BPLANG . '.mo' );
  6. }
  7.  
  8.  
  9.  
  10. function my_bp_override_core_domain() {
  11. $domain = get_bloginfo('url');
  12. return $domain;
  13. }
  14. add_filter('bp_core_get_root_domain','my_bp_override_core_domain');
  15. ?>
clone this paste RAW Paste Data