本文整理汇总了PHP中bp_message_get_recipient_usernames函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_message_get_recipient_usernames函数的具体用法?PHP bp_message_get_recipient_usernames怎么用?PHP bp_message_get_recipient_usernames使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_message_get_recipient_usernames函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _e
" />
<label for="message_content"><?php
_e('Message', 'buddypress');
?>
</label>
<textarea name="content" id="message_content" rows="15" cols="40"><?php
bp_messages_content_value();
?>
</textarea>
<input type="hidden" name="send_to_usernames" id="send-to-usernames" value="<?php
bp_message_get_recipient_usernames();
?>
" class="<?php
bp_message_get_recipient_usernames();
?>
" />
<?php
/**
* Fires after the display of message compose content.
*
* @since 1.1.0
*/
do_action('bp_after_messages_compose_content');
?>
<div class="submit">
<input type="submit" value="<?php
esc_attr_e("Send Message", 'buddypress');
示例2: bp_message_get_recipient_tabs
<?php bp_message_get_recipient_tabs() ?>
<input type="text" name="send-to-input" class="send-to-input" id="send-to-input" />
</li>
</ul>
<?php if ( is_super_admin() ) : ?>
<input type="checkbox" id="send-notice" name="send-notice" value="1" /> <?php _e( "This is a notice to all users.", "buddypress" ) ?>
<?php endif; ?>
<label for="subject"><?php _e( 'Subject', 'buddypress') ?></label>
<input type="text" name="subject" id="subject" value="<?php bp_messages_subject_value() ?>" />
<label for="content"><?php _e( 'Message', 'buddypress') ?></label>
<textarea name="content" id="message_content" rows="15" cols="40"><?php bp_messages_content_value() ?></textarea>
<input type="hidden" name="send_to_usernames" id="send-to-usernames" value="<?php bp_message_get_recipient_usernames(); ?>" class="<?php bp_message_get_recipient_usernames() ?>" />
<?php do_action( 'bp_after_messages_compose_content' ) ?>
<div class="submit">
<input type="submit" value="<?php _e( "Send Message", 'buddypress' ) ?> →" name="send" id="send" />
<span class="ajax-loader"></span>
</div>
<?php wp_nonce_field( 'messages_send_message' ) ?>
</form>
<script type="text/javascript">
document.getElementById("send-to-input").focus();
</script>