內容簡介
此外掛新增了在頁面、文章、自訂文章類型和 HTML / 文字小工具中為 BuddyPress 使用者產生動態個人檔案連結的功能。當使用者登出時,會顯示「您需要登入才能看到此連結」的訊息,而不是個人檔案連結。
已測試可與 BuddyPress 4.4.0 和 WordPress 5.2.3 兼容。
使用範例
[profile url="messages/" text="收件匣"]
[profile url="messages/sentbox/" text="寄件匣"]
[profile class="my-custom-class" url="profile/change-avatar/" text="更新您的個人檔案圖片"]
[profile rel="nofollow" class="my-custom-class" url="messages" target="_blank" text="查看您的收件匣"]
如果未為 URL 屬性定義值,則會產生一個通用鏈接到成員檔案。text 屬性必須始終定義值。
第三方外掛
此外掛可與產生 BuddyPress 成員檔案中頁面的任何第三方外掛配合使用。複製成員用戶名後面的 URL 余下部分,並粘貼到 URL 欄位。
支援
支援僅透過 WordPress.org 提供。請隨時 開啟新主題 並分享您遇到的所有問題。
致謝
用戶個人檔案圖示 - smashicons
外掛標籤
開發者團隊
原文外掛簡介
Adds the ability to generate dynamic profile links for BuddyPress users in pages, posts, CPTs and HTML / text widgets. When a user is logged out the message “You need to login to see this link” is displayed instead of the profile link.
Tested and working with BuddyPress 4.4.0 and WordPress 5.2.3
Usage examples
[profile url="messages/" text="Inbox"]
[profile url="messages/sentbox/" text="Sent"]
[profile class="my-custom-class" url="profile/change-avatar/" text="Update your profile picture"]
[profile rel="nofollow" class="my-custom-class" url="messages" target="_blank" text="Check your inbox"]
If you do not define a value for the URL attribute a generic link will be generated to the members profile. A value must always be defined for the text attribute.
Third party plugins
This will work with any third party plugin that generates a page within the BuddyPress members profile. Copy the remainder of the URL after the members username and paste into the url field.
Support
Support is offered via WordPress.org only. Feel free to open a new topic and share any issues you’ve experienced.
Credits
User profile icon – smashicons
