SHARE
TWEET

Network Privacy for BuddyPress

simonwheatley Mar 15th, 2012 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. /*
  4. Plugin Name: Network Privacy for BuddyPress
  5. Plugin URI: http://simonwheatley.co.uk/wordpress/ranpfbp-dont-expect-this-url-to-work
  6. Description: A light tap with the virtual hammer to make the otherwise sterling Network Privacy work for the BuddyPress default theme.
  7. Network: true
  8. Version: 0.1
  9. */
  10.  
  11. /*  Copyright 2012 Simon Wheatley
  12.  
  13. This program is free software; you can redistribute it and/or modify
  14. it under the terms of the GNU General Public License as published by
  15. the Free Software Foundation; either version 2 of the License, or
  16. (at your option) any later version.
  17.  
  18. This program is distributed in the hope that it will be useful,
  19. but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  21. GNU General Public License for more details.
  22.  
  23. You should have received a copy of the GNU General Public License
  24. along with this program; if not, write to the Free Software
  25. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  26.  
  27. */
  28.  
  29. /**
  30.  * Hooks the WP init action to add Network Privacy's authenticator
  31.  * to the bp_screens action.
  32.  *
  33.  * @return void
  34.  **/
  35. function ranpfbp_plugins_loaded() {
  36.         global $ra_network_privacy;
  37.         add_action( 'bp_screens', array( $ra_network_privacy, 'authenticator' ), 0 );
  38. }
  39. add_action( 'plugins_loaded', 'ranpfbp_plugins_loaded' );
  40.  
  41. ?>
RAW Paste Data
Top