Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name: Network Privacy for BuddyPress
- Plugin URI: http://simonwheatley.co.uk/wordpress/ranpfbp-dont-expect-this-url-to-work
- Description: A light tap with the virtual hammer to make the otherwise sterling Network Privacy work for the BuddyPress default theme.
- Network: true
- Version: 0.1
- */
- /* Copyright 2012 Simon Wheatley
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
- /**
- * Hooks the WP init action to add Network Privacy's authenticator
- * to the bp_screens action.
- *
- * @return void
- **/
- function ranpfbp_plugins_loaded() {
- global $ra_network_privacy;
- add_action( 'bp_screens', array( $ra_network_privacy, 'authenticator' ), 0 );
- }
- add_action( 'plugins_loaded', 'ranpfbp_plugins_loaded' );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement