本文整理汇总了PHP中bbp_get_current_user_name函数的典型用法代码示例。如果您正苦于以下问题:PHP bbp_get_current_user_name函数的具体用法?PHP bbp_get_current_user_name怎么用?PHP bbp_get_current_user_name使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bbp_get_current_user_name函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: test_bbp_get_current_user_name
/**
* @covers ::bbp_current_user_name
* @covers ::bbp_get_current_user_name
*/
public function test_bbp_get_current_user_name()
{
$current_user = wp_get_current_user();
// String.
$user_id = bbp_get_current_user_name();
$this->assertSame($current_user->display_name, $user_id);
// Output.
$this->expectOutputString($current_user->display_name);
bbp_current_user_name($this->keymaster_id);
}
示例2: bbp_form_reply_log_edit
<input name="bbp_log_reply_edit" id="bbp_log_reply_edit" type="checkbox" value="1" <?php
bbp_form_reply_log_edit();
?>
tabindex="<?php
bbp_tab_index();
?>
" />
<label for="bbp_log_reply_edit"><?php
esc_html_e('Keep a log of this edit:', 'monsoon');
?>
</label><br />
</legend>
<div>
<label for="bbp_reply_edit_reason"><?php
printf(esc_html__('Optional reason for editing:', 'monsoon'), bbp_get_current_user_name());
?>
</label><br />
<input type="text" value="<?php
bbp_form_reply_edit_reason();
?>
" tabindex="<?php
bbp_tab_index();
?>
" size="40" name="bbp_reply_edit_reason" id="bbp_reply_edit_reason" />
</div>
</fieldset>
<?php
do_action('bbp_theme_after_reply_form_revisions');
?>
示例3: bbp_form_topic_log_edit
<input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php
bbp_form_topic_log_edit();
?>
tabindex="<?php
bbp_tab_index();
?>
" />
<label for="bbp_log_topic_edit"><?php
_e('Keep a log of this edit:', 'bbpress');
?>
</label><br />
</legend>
<div>
<label for="bbp_topic_edit_reason"><?php
printf(__('Optional reason for editing:', 'bbpress'), bbp_get_current_user_name());
?>
</label><br />
<input type="text" value="<?php
bbp_form_topic_edit_reason();
?>
" tabindex="<?php
bbp_tab_index();
?>
" size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" />
</div>
</fieldset>
<?php
do_action('bbp_theme_after_topic_form_revisions');
?>
示例4: bbp_current_user_name
/**
* Output name of current user
*
* @since 2.0.0 bbPress (r2574)
*
* @uses bbp_get_current_user_name() To get the current user name
*/
function bbp_current_user_name()
{
echo bbp_get_current_user_name();
}
示例5: bbp_form_reply_log_edit
<input name="bbp_log_reply_edit" id="bbp_log_reply_edit" type="checkbox" value="1" <?php
bbp_form_reply_log_edit();
?>
tabindex="<?php
bbp_tab_index();
?>
" />
<label for="bbp_log_reply_edit"><?php
_e('Keep a log of this edit:', 'firmasite');
?>
</label><br />
</legend>
<div>
<label for="bbp_reply_edit_reason"><?php
printf(__('Optional reason for editing:', 'firmasite'), bbp_get_current_user_name());
?>
</label><br />
<input type="text" value="<?php
bbp_form_reply_edit_reason();
?>
" tabindex="<?php
bbp_tab_index();
?>
" size="40" name="bbp_reply_edit_reason" id="bbp_reply_edit_reason" />
</div>
</fieldset>
<?php
do_action('bbp_theme_after_reply_form_revisions');
?>
示例6: bbp_form_topic_log_edit
<input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php
bbp_form_topic_log_edit();
?>
tabindex="<?php
bbp_tab_index();
?>
" />
<label for="bbp_log_topic_edit"><?php
_e('Keep a log of this edit:', 'omega-td');
?>
</label><br />
</div>
<div>
<label for="bbp_topic_edit_reason"><?php
printf(__('Optional reason for editing:', 'omega-td'), bbp_get_current_user_name());
?>
</label><br />
<input type="text" value="<?php
bbp_form_topic_edit_reason();
?>
" tabindex="<?php
bbp_tab_index();
?>
" size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" />
</div>
</fieldset>
<?php
do_action('bbp_theme_after_topic_form_revisions');
?>
示例7: do_action
<?php do_action( 'bbp_theme_after_reply_form_subscription' ); ?>
<?php endif; ?>
<?php if ( bbp_allow_revisions() && bbp_is_reply_edit() ) : ?>
<?php do_action( 'bbp_theme_before_reply_form_revisions' ); ?>
<fieldset class="bbp-form">
<legend>
<input name="bbp_log_reply_edit" id="bbp_log_reply_edit" type="checkbox" value="1" <?php bbp_form_reply_log_edit(); ?> tabindex="<?php bbp_tab_index(); ?>" />
<label for="bbp_log_reply_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br />
</legend>
<div>
<label for="bbp_reply_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br />
<input type="text" value="<?php bbp_form_reply_edit_reason(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_reply_edit_reason" id="bbp_reply_edit_reason" />
</div>
</fieldset>
<?php do_action( 'bbp_theme_after_reply_form_revisions' ); ?>
<?php endif; ?>
<?php do_action( 'bbp_theme_before_reply_form_submit_wrapper' ); ?>
<div class="bbp-submit-wrapper">
<?php do_action( 'bbp_theme_before_reply_form_submit_button' ); ?>
<?php bbp_cancel_reply_to_link(); ?>
示例8: bbp_form_topic_log_edit
<input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php
bbp_form_topic_log_edit();
?>
tabindex="<?php
bbp_tab_index();
?>
" />
<label for="bbp_log_topic_edit"><?php
_e('Keep a log of this edit:', 'mk_framework');
?>
</label><br />
</div>
<div>
<label for="bbp_topic_edit_reason"><?php
printf(__('Optional reason for editing:', 'mk_framework'), bbp_get_current_user_name());
?>
</label><br />
<input type="text" value="<?php
bbp_form_topic_edit_reason();
?>
" tabindex="<?php
bbp_tab_index();
?>
" size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" />
</div>
</fieldset>
<?php
do_action('bbp_theme_after_topic_form_revisions');
?>
示例9: bbp_user_profile_url
bbp_user_profile_url();
?>
" title="<?php
bbp_displayed_user_field('display_name');
?>
" rel="me">
<?php
echo get_avatar(bbp_get_displayed_user_field('user_email', 'raw'), apply_filters('bbp_single_user_details_avatar_size', 100));
?>
</a>
</span>
</div><!-- #author-avatar -->
<div class="x-bbp-user-header-content">
<h1 class="x-bbp-user-header-title"><?php
echo bbp_get_current_user_name();
?>
</h1>
<?php
// bbp_notice_edit_user_is_super_admin();
?>
</div>
</div>
<div id="bbp-user-navigation">
<ul>
<li class="<?php
if (bbp_is_single_user_profile()) {
?>
current<?php
}
示例10: bbp_form_topic_log_edit
<input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php
bbp_form_topic_log_edit();
?>
tabindex="<?php
bbp_tab_index();
?>
" />
<label for="bbp_log_topic_edit"><?php
_e('Keep a log of this edit:', 'bbpress');
?>
</label><br />
</legend>
<div class="form-group">
<label for="bbp_topic_edit_reason"><?php
printf(__('Reason for Editing', 'bbpress'), bbp_get_current_user_name());
?>
</label>
<input type="text" value="<?php
bbp_form_topic_edit_reason();
?>
" placeholder="(optional)" tabindex="<?php
bbp_tab_index();
?>
" size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" />
</div>
</fieldset>
<?php
do_action('bbp_theme_after_topic_form_revisions');
?>