Created
March 31, 2014 07:54
-
-
Save ntwb/9887310 to your computer and use it in GitHub Desktop.
bbPress - Add BuddyPress Private Message link after author reply details
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: bbPress - Add BuddyPress Private Message link after author reply details | |
Plugin URI: https://gist.github.com/ntwb/9887310 | |
Description: bbPress - Add BuddyPress Private Message link after author reply details | |
Version: 0.1 | |
Author: Stephen Edgar - Netweb | |
Author URI: http://netweb.com.au | |
*/ | |
function ntwb_bbp_bp_pm() { | |
if(function_exists('bp_send_private_message_link') && is_user_logged_in() ) { | |
?> | |
<a href="<?php bp_send_private_message_link() ?>" title="Private Message">Private Message</a> | |
<?php | |
} | |
} | |
add_action( 'bbp_theme_after_reply_author_details', 'ntwb_bbp_bp_pm' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment