本文整理汇总了PHP中bp_is_user_settings函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_is_user_settings函数的具体用法?PHP bp_is_user_settings怎么用?PHP bp_is_user_settings使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_is_user_settings函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bp_get_template_part
bp_get_template_part('members/single/activity');
} elseif (bp_is_user_blogs()) {
bp_get_template_part('members/single/blogs');
} elseif (bp_is_user_friends()) {
bp_get_template_part('members/single/friends');
} elseif (bp_is_user_groups()) {
bp_get_template_part('members/single/groups');
} elseif (bp_is_user_messages()) {
bp_get_template_part('members/single/messages');
} elseif (bp_is_user_profile()) {
bp_get_template_part('members/single/profile');
} elseif (bp_is_user_forums()) {
bp_get_template_part('members/single/forums');
} elseif (bp_is_user_notifications()) {
bp_get_template_part('members/single/notifications');
} elseif (bp_is_user_settings()) {
bp_get_template_part('members/single/settings');
// If nothing sticks, load a generic template
} else {
bp_get_template_part('members/single/plugins');
}
do_action('bp_after_member_body');
?>
</div>
<!-- #item-body -->
</div>
<!-- end .row -->
<?php
示例2: bp_is_user_settings_account_delete
/**
* Is this a user's Account Deletion page?
*
* @package BuddyPress
* @since 1.5
*
* @return bool
*/
function bp_is_user_settings_account_delete()
{
if (bp_is_user_settings() && bp_is_current_action('delete-account')) {
return true;
}
return false;
}
示例3: bp_is_user_settings_profile
/**
* Is this a user's profile settings?
*
* Eg http://example.com/members/joe/settings/profile/.
*
* @since 2.0.0
*
* @return bool True if the current page is a user's Profile Settings page.
*/
function bp_is_user_settings_profile()
{
return (bool) (bp_is_user_settings() && bp_is_current_action('profile'));
}
示例4: bp_is_user_settings_profile
/**
* Is this a user's profile settings?
*
* Eg http://example.com/members/joe/settings/profile/.
*
* @since BuddyPress (2.0.0)
*
* @return bool True if the current page is a user's Profile Settings page.
*/
function bp_is_user_settings_profile()
{
if (bp_is_user_settings() && bp_is_current_action('profile')) {
return true;
}
return false;
}