Ultimate Member 您所在的位置:网站首页 passwordresetregistrationpage Ultimate Member

Ultimate Member

2023-04-04 18:35| 来源: 网络整理| 查看: 265

Ultimate Member - Shortcodes

Ultimate Member utilizes WordPress shortcodes to help users display forms in WordPress pages and posts. In this article, we outline the parameters and overview  for each UM extension:

Ultimate Member includes numerous shortcodes that can be used for displaying various parts of the plugin, such as user profiles, registration forms, and more.

Core Plugin Pages Restrict content Search Social Activity Followers Messaging Notices Notifications Online Reviews Social Login User Tags Profile Completeness Core Plugin # Pages # Account - The shortcode for the account form is [ultimatemember_account]. It is possible to show individual account tabs using [ultimatemember_account tab="tab id"] e.g. [ultimatemember_account tab="password"]. The tab id can be found in the URL while you are on this tab e.g /account/general, so "general" is your tab id. Password reset - The shortcode for the password reset form is [ultimatemember_password]. Login, Registration, User - Shortcodes for these pages can be found on wp-admin > Ultimate Member > Forms. Members - Shortcodes for member directories can be found on wp-admin > Ultimate Member > Member Directories.

Image - Shortcodes for pages Login, Registration, User.

Image - Shortcodes for the Members page.

Restrict content #

Show content to specific roles #

[um_show_content roles="member"] Only the member role can see this content. [/um_show_content] [um_show_content not="member"] Only non-member roles can see this content. [/um_show_content]

Note: Please be reminded that the role you need to use in the code is the Role ID. To check the role ID of your user, go to wp-admin > Ultimate Member > User Roles.

Show content for logged in users #

[um_loggedin] This text can only be seen by logged in users [/um_loggedin]

Show content for logged out users #

[um_loggedout] This text can only be seen by logged out users [/um_loggedout] Search #

Search Users #

[ultimatemember_searchform] Social Activity #

User Profile Wall

Used on the user profile page, the shortcode displays wall posts of the user.

Parameters ( attributes ):

user_id (integer) - show specific user wall posts by user ID. hashtag (string) - show specific user wall posts by Hashtag. wall_post (integer) - show specific post/activity user_wall (bool) - show the form on the wall. [ultimatemember_wall user_id=”123” hashtag=”’#mypost” wall_post=”3” user_wall=”true” ]

Activity

Used on the Activity page, the shortcode lets a user see wall posts and activities of users.

Parameters ( attributes ):

user_id (integer)- show specific user wall posts by user ID. hashtag (string) - show specific user wall posts by Hashtag. user_wall (bool) - show the form on the wall. wall_post (integer) -  show specific post/activity template (string) - activity template name mode (string)- mode name append in the element’s class form_id ( string ) - form id append in the element id [ultimatemember_activity user_id=”123” hashtag=”#mypost” user_wall=”false” wall_post=”3” template=”activity” mode=”activity” form_id=”um_activity_id” ] Trending Hashtags

Shows the trending hashtags where the users used in their wall posts.

Parameters ( attributes ):

trending_days (integer) -  number of days the hashtags trend number (string) - number of hashtags to trend in days [ultimatemember_trending_hashtags trending_days=”7” number=”10” ]

Followers #

List Followers

Shows the followers of a registered user

Parameters ( attributes ):

user_id (integer) -  show the followers of a specific user style (string) - there are two style options: avatars - show followers lists with avatars default - show followers list with avatars and follow bars max (string) - number of  followers to display [ultimatemember_followers user_id=”123” style=”default” max=”11” ]

List Following

Shows the people a registered users follow

Parameters ( attributes ):

user_id (integer) -  shows the people a specific user follow style (string) - there are two style options: avatars - show following lists with avatars default - show following lists with avatars and follow bars max (string) - number of  followers to display [ultimatemember_following user_id=”123” style=”default” max=”11” ]

Follow Bars

Shows a follow bar with a total number of followers and following of a specific user.

  Parameters ( attributes ):

user_id (integer) -  shows the people a specific user follow [ultimatemember_followers_bar user_id=”123” ]

Messaging #

Show Message Box

Used on a page to show the message box of a specific user.

Parameters ( attributes ):

user_id (integer) -  shows the message box to this user

[ultimatemember_messages user_id=”123” ]

Show Message Button

Used on a page, post, menu, and widget with shortcode support to show the message button of a specific user.

Parameter ( attribute ):

user_id (integer) -  shows the message button of this user

[ultimatemember_message_button user_id=”123” ]

Show Message Count

Used on a page, post, menu, and widget with shortcode support to show the total unread messages of a specific user.

 Parameters ( attributes ):

 user_id (integer) -  show the total unread messages of a specific user.

[ultimatemember_message_count user_id=”123” ]

Notices #

Used on a page to show a specific notice.

Parameters ( attributes ):

id (integer) -  show the specific notice from post type ‘um_notice’. Go to WP admin > Ultimate Member > Notices [ultimatemember_notice id=”123” ]

Notifications #

Show notifications

Used on a notification page. This notification shortcode will display notifications of a user.

[ultimatemember_notifications]

Show notification count

Used on a post/page, menu, and widget with shortcode support. These shortcodes will display the total number of notifications of the current logged-in user.

[ultimatemember_notification_count]

Online #

Used on a page to show online users.

Parameters ( attributes ):

max (integer) -  maximum limit of the total online users to show Default: 11 roles (string) -  filter the online users by roles. Default: all [ultimatemember_online max="11" roles="all" ] Reviews #

The reviews shortcode is used to display user ratings. It is the primary method used to display forms within your WordPress site. The reviews shortcode can be used anywhere within WordPress where shortcodes are supported. For most users, this will primarily be within the content of a WordPress post or page.

Parameters ( attributes ):

roles The role of the rated users to be listed. (optional) Default: member number A total number of users to be listed. (optional) Default: 5

Display Top Rated Reviews:

[ultimatemember_top_rated roles="member" number="5" ]

Display Most Rated Reviews:

[ultimatemember_most_rated roles="member" number="5"]

Display Lowest Rated Reviews:

[ultimatemember_lowest_rated roles="member" number="5"] Social Login #

Show Social Login/Register buttons

Used on login/registration page. This shortcode will display social buttons to everyone.

Parameters ( attributes ):

id (integer) - the ID of a social login form in post type ‘um_social_login’. Go to WP admin > Ultimate Member > Social Login [ultimatemember_social_login id="123" ]

User Tags #

Display User Tags

Used on any pages. This shortcode will display the User Tags to everyone.

Parameters ( attributes ):

term_id (integer) - the ID of the term - user tag (parent) you search for; user_field (string) - the meta key of the field you search for; number (integer) - maximum number of terms to return; orderby (string) - order terms by: id, name, count, slug, description.  Default 'count'; order (string) - whether to order terms in ascending or descending order. Accepts 'asc' (ascending) or 'desc' (descending).  Default 'desc'. [ultimatemember_tags term_id="4" user_field="skills" number="10" orderby="count" order="desc" ]

Profile Completeness # Display Profile Completeness

Used on any pages and widget that has shortcode support. This shortcode will display the profile completeness of the current logged-in user.

Parameters ( attributes ):

None. [ultimatemember_profile_completeness] Display Profile Progress Bar

Used on any pages and widget that has shortcode support. This shortcode will display the profile completeness bar of the currently logged-in user or a specific user.

Parameters ( attributes ):

user_id (integer) - Show to specific user id. Default: currently logged in user [ultimatemember_profile_progress_bar user_id="123" ]


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有