| 开发者 | gomp |
|---|---|
| 更新时间 | 2026年7月13日 16:02 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
score += tag_weight x tag_count for each matching tag.find-your-team folder to /wp-content/plugins/, or install the plugin through the Plugins → Add New Plugin screen in your WordPress admin.[conttema_quiz] shortcode, or insert the "Contributor Team Matcher" block in the Block Editor.Add the shortcode [conttema_quiz] to any page, post, or widget, or insert the Contributor Team Matcher block in the Block Editor. The block is server-side rendered and shows a styled placeholder in the editor.
Yes. Everything is editable from the Contributor Team Matcher admin menu, which has three tabs: Questions, Teams, and Usage. No code changes are required. You can also reset questions and teams back to their defaults.
Yes. Each question can be set independently to a single answer (radio) or multiple answers (checkbox, up to 3 selections).
No. The frontend is written in vanilla JavaScript with no jQuery dependency.
__() in the Block Editor script (blocks/contributor-team-matcher-quiz/index.js) from contributor-team-matcher to find-your-team, so the block's editor strings match the domain declared in block.json and load translations correctly.find-your-team to match the WordPress.org slug.CTM_ / ctm_ prefix to CONTTEMA_ / conttema_ — constants, class names, include filenames, nonces, and AJAX actions on the PHP side, and the localized data object (ctmData to conttemaData) on the JavaScript side.admin.php?page=contributor-team-matcher panel instead of options-general.php, so navigating between tabs no longer bounces to the Settings screen.contributor-team-matcher/quiz registered via block.json. Editors can insert the quiz from the block inserter without typing the shortcode. The block is server-side rendered and shows a styled placeholder in the editor.<label> elements so custom radio/checkbox indicators render correctly in all browsers.input[type="radio"] elements and style them with the custom dot indicator (circular for radio, square for checkbox).:has() now that inputs are descendants of labels rather than preceding siblings.role="radiogroup"; checkbox questions keep the existing multi-select logic.innerHTML insertion to prevent potential stored XSS.role="radiogroup" / role="group" on answer lists.