內容簡介
這個小工具的外觀和 GitHub 組織頁面中的成員框相似。只需輸入 GitHub 組織名稱,即可在小工具中展示 GitHub 組織成員。可以使用過濾器gh_members_showoff_widget_view_path來更改小工具的檢視路徑。
要使用短碼,請使用[gh_members_showoff org="Automattic" limit="10" order_username="asc"]。必填屬性是org,其餘為可選屬性。這將渲染指定組織的成員列表。您可以通過gh_members_showoff_shortcode_view_path過濾器更改渲染的成員列表的檢視路徑。
如果您想通過外掛或佈景主題顯示成員列表,可以使用:
<?php do_action( 'gh_members_showoff', array( 'org' => 'GitHub' ) ); ?>
短碼中的同樣屬性也適用。
此插件依賴於GitHub API插件。請確保首先安裝並啟用該插件。
此插件的開發已在GitHub上完成。歡迎提交合併請求。
外掛標籤
開發者團隊
原文外掛簡介
The widget appearance mimics the members box in GitHub org page. You just simply enter GitHub organization for the widget to show off the GitHub org members in a widget. There’s filter gh_members_showoff_widget_view_path to change view path of the widget.
To use the shortcode, use [gh_members_showoff org="Automattic" limit="10" order_username="asc"]. The required attribute is org, the rest is optional. This will render member listing of specified org. You can change the view path of rendered member listing via gh_members_showoff_shortcode_view_path filter.
If you want to display member listing via plugin or theme, you can use:
'GitHub' ) ); ?>
The same attributes on shortcode apply too.
This plugin depends on GitHub API plugin. Make sure to install and activate that first.
Development of this plugin is done on GitHub. Pull requests are always welcome.
