インストール時にWP-Members は全ての登録フィールドデータを含む配列を作成し、それを wp_options テーブルに保存します。これらのフィールドはプラグインのフィールドタブに表示されます。
このフィールドタブの画面では、登録フォームに表示されるフィールドとそのフィールドのうちどれを必須にするかを管理者が設定できます。 登録フォームに表示したいフィールドのチェックボックスにチェックを入れ、そのフィールドへのデータの入力が必須かどうかのチェックボックスにチェックを入れます。
またフィールドタブではドラッグ アンドドロップによってフィールドが表示される順序を変更することもできます。
このパネルにはどのフィールドが WordPress 固有のものなのかを示す列があります。 WordPress 固有ではないフィールドのデータはユーザー詳細ページでは下部に表示されます。
インストール時に作成されたフィールドはどれなのか初期状態をちゃんと覚えておいてください。これらのフィールドは必要に応じて追加または削除できます (WordPress がユーザーを作成するために必要なユーザー名と電子メールを除く)。別のプラグインまたはプロセスと統合している場合は、プロセスに一致するメタキーを持つフィールドを作成し、使っていない不要なカスタムフィールドを削除できます。
原文を見る
At install, WP-Members creates an array containing all of the registration field data and stores it in the wp_options table. These fields are displayed in the plugin’s Fields tab.
This screen allows the administrator to establish what fields are displayed in the registration form and which fields are required. Check the box for which fields you want displayed in the registration form and check the box for whether entering data for this field is required or not.
The Fields tab also allows you to determine the order the fields are displayed in by drag-and-drop.
There is a column in this panel indicating which fields are native to WP. Data for fields that are not native to WP will display at the bottom of the user detail page.
Consider the initially installed fields a starting point. You can add or delete any of these fields as needed (with the exception of username and email which WP requires to create a user). If you are integrating with another plugin or process, you can create fields with meta keys that match your process and delete any unused custom fields you do not need.
https://rocketgeek.com/plugins/wp-members/docs/registration/choosing-fields/
フィールドを削除する
フィールドを削除するには、削除するフィールドのフィールドマネージャーの左端の列にある一括アクションチェックボックスにチェックを入れます。次に一括操作メニューから「選択されたデータを削除」を選択し、「適用」ボタンをクリックします。 複数のボックスをチェックを入れることで一度に複数のフィールドを削除できます。フィールドが設定から削除されたら、フィールドを再作成するにはフィールドの追加手順を行うする必要があります。また、WordPress 固有のフィールドを削除することはできません。それらを使用しない場合は「登録」とマークされたボックスのチェックを外すだけで使用されなくなります。
注意:プラグイン設定からフィールドを削除してもそのフィールドを使用してなされた登録には影響しません。 wp_usermeta データベース値はデータベースに残ります。
原文を見る
To delete a field, use the bulk action checkbox in the far left column of the Fields manager for any field(s) you want to delete. Then select “Delete” from the bulk action menu and click the “Apply” button. You can delete multiple fields at one time by checking more than one box. Once a field is deleted from the settings, you would need to use the Add Fields process to recreate it. Also, you may not delete fields that are native to WordPress. If you are not using these, simply uncheck the box marked Display and they will not be used.
Note: Deleting a field from the plugin settings does not effect any registrations that used that field. Any wp_usermeta database values will remain in the database.
https://rocketgeek.com/plugins/wp-members/docs/registration/choosing-fields/
フィールドを追加する
新しいフィールドを追加するには、「フィールドの追加」ページで新しいフィールドの詳細を入力します。
新しいフィールドのパラメータを入力し、[フィールドの追加] ボックスをオンにしたら、[フィールドの更新] をクリックしてフィールド一覧を新しいフィールドで更新します。新しいフィールドが一覧に表示されない場合は更新されていません。
原文を見る
To add a new field, complete the details for the new field in the “Add a Field” section.
Once you have entered parameters for the new field and checked the Add Field box, click Update Fields to update the field list with the new field. If your new field is not displayed in the list, it did not update.
https://rocketgeek.com/plugins/wp-members/docs/registration/choosing-fields/
全てのフィールドのパラメーター:
- フィールドラベル – これはフォームに表示されるものです
- オプション名 – この名前はuser_meta テーブルに保存されます (スペースは使用できません)
- フィールドタイプ – 現在はテキスト、テキストエリア、チェックボックスをサポートしています
- 表示 – このフィールドを登録フォームで使用する場合はこのボックスにチェックを入れます
- 必須入力項目 – このフィールドが必須フィールドの場合はこのボックスをオンにします
原文を見る
https://rocketgeek.com/plugins/wp-members/docs/registration/choosing-fields/
- Field Label – this is what displays on the form
- Option Name – name this will be stored as in the user_meta table (spaces not allowed)
- Field Type – currently support text, textarea, and checkbox
- Display – check this box if the field is to be used in registration form
- Required – check this box if the field is a required field
チェックボックスのパラメーター:
- 値 – ボックスがチェックされている場合のフィールドの値です。
- デフォルトでチェック済み – これによりチェックボックスがチェックされた状態で表示されます。
原文を見る
https://rocketgeek.com/plugins/wp-members/docs/registration/choosing-fields/
- Value – this is the value of the field if the box is checked
- Checked by default – this will cause the checkbox to display as checked
ドロップダウンリスト、複数選択チェックボックス、ラジオグループのパラメーター:
選択メニュー(ドロップダウン)、複数選択チェックボックス、またはラジオフィールドを追加する場合は、表示されるボックスに一覧リスト項目の値を指定しなければなりません。この一覧は以下の形式で指定する必要があります。:
表示されるテキスト | the_stored_value,
- 「表示されるテキスト」は、ドロップダウンリストでユーザーに対して表示されるテキストです。
- パイプ文字 ( | ) は、表示されるメニュー項目と保存される値を区切るために使用されます。
- 「the_stored_value」はユーザーがこの項目を選択した場合にデータベースに保存される値です。
- 一覧内の項目は次の項目との間をカンマで区切らなければなりません (最後の項目の後にはカンマは必要ありません)。
「表示されるテキスト」または「the_stored_value」にカンマ (「1,000」など) が含まれている場合は、以下のように行を引用符で囲む必要があります (行末のカンマを除く)。:
“1,000-10,000|1,000-10,000”,
“10,000-100,000|10,000-100,000”,
“100,000-500,000|100,000-500,000”
これらのパラメータはいくつかの追加機能を提供します。例えば、メニューの初期表示を <–SELECT ONE–> などにするがこれ自体は選択可能な値にしない場合、以下のように表示されるメニュー項目の後にパイプ区切り文字を入力し、その後にカンマを入力します。:
<–SELECT ONE–>|,
あるいは、メニュー項目のグループ間の区切り文字として空白行が必要な場合は、パイプ区切り文字の後にカンマを使用するだけです。
原文を見る
If you add a select (dropdown), multiple checkbox, or radio field, you must specify the values for the list items in the box provided. This list should be provided in the following format:
The Displayed Text|the_stored_value,
- “The Displayed Text” is the text that will display in the dropdown list to the user.
- The pipe charatcer ( | ) is used to separate the displayed menu item from the stored value.
- “the_stored_value” is the value that will be stored in the database if the user selects this item.
- A comma must separate this list item from the next item in the list (no comma is needed after the last item).
If the “Displayed Text” or “the_stored_value” contain a comma (such as “1,000”), the line must be wrapped with quotes (except the comma at the end of the line) like this:
“1,000-10,000|1,000-10,000”,
“10,000-100,000|10,000-100,000”,
“100,000-500,000|100,000-500,000”These parameters account for a couple of extra features. For example, if you want the list to start with something such as <–SELECT ONE–> but that this is not a selectable value itself, put the displayed menu item, followed by the pipe separator, and then a comma like this:
<–SELECT ONE–>|,
Alternatively, if you want a blank line as a separator between a group of menu items, simply use the pipe separator followed by a comma.
https://rocketgeek.com/plugins/wp-members/docs/registration/choosing-fields/
フィールドの順番を変更する
フィールドの表示される順番はフィールドを目的の場所にドラッグすることで変更できます。フィールドの順番はフィールドを新しい場所にドロップすると即座に変更されることに注意してください。フィールドの順番位置が正常に変更されると確認メッセージが表示されます。
原文を見る
The order in which the fields display can be changed by dragging the field where you want it. Note that the field order is changed immediately upon dropping the field in the new location. Upon successfully changing a field’s place in the order, you should receive a confirmation message.
https://rocketgeek.com/plugins/wp-members/docs/registration/choosing-fields/
他のプラグインと統合する
WP-Membersは他のプラグイン (WooCommerce など) がWordPress のデータベーススキーマを使用しているのであれば(多くのプラグインは使用しています)、自身のフィールドをそのプラグインのカスタムフィールドと統合できます 。全てのカスタムユーザーフィールドはユーザーメタ フィールドとして保存されます。そのため別のプラグインと統合するには、一致する必要があるカスタムフィールドが他のプラグインが使用しているものと同じメタキーを使用していることを確認するだけで済みます。
原文を見る
WP-Members can integrate fields with other the custom fields of other plugins (such as WooCommerce) as long as that plugin uses WP’s database schema (which many do). All custom user fields are stored as user meta fields, so in order to integrate with another plugin, you just need to make sure that for any custom fields that need to match up you have used the same meta key that the other plugin uses.
https://rocketgeek.com/plugins/wp-members/docs/registration/choosing-fields/
デモ動画
このドキュメントの 動画のページに、フィールドタブに備わっている全ての機能と設定を説明するデモ動画があります。
原文を見る
There is a demo video that goes through all of the features and settings in the Fields tab on the Videos page in the documentation.
https://rocketgeek.com/plugins/wp-members/docs/registration/choosing-fields/