通常の投稿や固定ページに加えて、WP-Members ではカスタム投稿タイプも制御するように設定できます。
前述したように、投稿と固定ページは固有の投稿タイプです。 これらおよびその他の WordPress 既定投稿タイプに加えて、「カスタム投稿タイプ」または CPT を作成することができます。
CPT は特定の種類のコンテンツを処理するためにプラグインやテーマでよく使用されます。これらは投稿や固定ページと同じように動作する場合もあれば、そうでない場合もあります。 正常に動作するかどうかは完全にそのCPT 次第です。 – 覚えておいてください、これらは「カスタム」であるためほぼ何でも可能です。
WP-Members は CPT を自動的には処理しません。使用しているCPTに基づき処理を行うようにプラグインを設定する必要があります。CPT はカスタムであるため、WP-Membersは CPT が何であるか、何をしているのかを自動的に知ることはできないということを覚えておいてください。
WP-Members のメインオプションタブに移動して一番下までスクロールすると、あなたのWordPress環境で正式に使用できるCPT の一覧が表示されます。WP-Members に処理させたいCPTを選択して設定を保存します。こうして選んだCPTはメインのWP-Membersコンテンツオプションに追加されます。これで投稿や固定ページを処理するのと同じように追加したCPTを処理できます。
全てのCPT が WP 投稿と同じように機能するとは限らないことに忘れないでください。したがって、WP-MembersがCPTを投稿と同様に閲覧制限できるかどうかは保証されません。CPT がカスタム投稿メタフィールドを使用する場合、それらは閲覧制限されません。CPT がループの外側にコンテンツを配置する場合もそれらは閲覧制限されません。このような場合、アクセスを防ぐためにリダイレクトを実装することができます。
原文を見る
In addition to regular posts and pages, WP-Members can be configured to handle Custom Post Types.
As previously discussed, posts and pages are specific post types. In addition to these and other WordPress defaults, you can create “custom post types” or CPTs.
CPTs are often found in plugins and themes to handle specific types of content. Sometimes these may operate much like a post or a page, and sometimes not. It depends entirely on the CPT – remember, these are “custom” so they can be almost anything.
WP-Members does not automatically handle CPTs. You need to set the plugin to do that based on the CPTs you have. Remember, CPTs are custom so WP-Members doesn’t automatically know what they are or what they do.
If you go to the WP-Members main Options tab and scroll to the bottom, you will see a list of public CPTs for your WP installation. Select any that you want WP-Members to handle and save your settings. This will add them to the main WP-Members Content Options. Then you can handle them the same as you would handle a post or a page.
Keep in mind that not all CPTs will function the same as a WP post. Therefore, it is not guaranteed that WP-Members will be able to block it the same as a post. If the CPT uses custom post meta fields, then those will not be blocked. If the CPT places content outside the Loop, that will also not be blocked. In these cases you may want to implement a redirect in order to prevent access.
https://rocketgeek.com/plugins/wp-members/docs/managing-content/custom-post-types/