Guest User

Untitled

a guest
Sep 18th, 2014
1,263
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function my_custom_bp_mofile( $mofile, $domain ){
  2.     if( 'buddypress' == $domain ){
  3.          $mofile = trailingslashit( WP_LANG_DIR ) . basename( $mofile );
  4.     }
  5.     return $mofile;
  6. }
  7. add_filter( 'load_textdomain_mofile', 'my_custom_bp_mofile', 10, 2 );
RAW Paste Data