Manage Category Restriction Rules

Creating Category Restriction Rules

You will get a menu called WPPCP Category Restrictions -> Restriction Rules to manage category restrictions. Once menu item is clicked, you will get the category restriction rules list table as shown in the following screenshot.

wppcp_cr_2

Then you can click on the Add New button to create your first category restriction rule. The form for creating restrictions is shown in the following screenshot.

wppcp_cr_3

Let’s identify the available fields.

  • Restriction Title – This is the name of the restriction, which allows you to identify the meaning of each restriction rule. You should use a meaningful title based on the category restriction rule you create.
  • Category – This is the category used for restricting posts. You should type the category name and select one from the available list.
  • Visibility – This field defines which users are allowed to see the posts from this category. You have the option to use guests/members/ user roles.
  • Redirection URL – This is the URL where user will be redirected when the user doesn’t have permission to view the category.

Once created, you can click on the List Restriction Rules button to view all the category restrictions.

wppcp_cr_4

Managing Category Restriction Rules

List of category restriction rules created on your site will be displayed in the table.  If you go to the restriction title in list, you will see 3 actions called Edit, Delete and Mark as Inactive. Let’s identify how to use these actions.

  • Edit – Once you click on this link, you will be redirected to restriction rules form with existing values. Then you can modify the values and update the restriction rule with different conditions.
  • Delete – Once you click on this link, you will be asked to confirm the deletion of the restriction rule.  Once its confirmed, rule will be removed from your list
  • Mark as Active / Inactive  – You will see a column called Status for all the restriction rules. Only the rules with Active status will be checked and rules with Inactive status will be ignored when viewing a post. You can use this option to temporarily activate/deactivate any given restriction rule.
[mpc_textblock content_width=”100″ font_color=”#ffffff” font_size=”22″ margin_divider=”true” mpc_tooltip__border_divider=”true” mpc_tooltip__padding_divider=”true” class=”wpexpert-wpro-ad-free-docs-static-text”]WPPCP Category Restrictions[/mpc_textblock][mpc_animated_text duration=”1000″ delay=”2650″ text_font_preset=”mpc_preset_17″ text_font_color=”#ffffff” text_font_align=”center” text=”Simple Setup|||Advanced Restriction Rules|||Priority Support|||” text_border_divider=”true” text_padding_divider=”true” disable_sides=”true” sides_font_preset=”mpc_preset_17″ sides_font_color=”#ffffff” sides_font_align=”center” border_divider=”true” padding_divider=”true” margin_divider=”true” class=”wpexpert-wpro-ad-free-docs-animated-text”][mpc_button preset=”mpc_preset_29″ url=”url:https%3A%2F%2Fwww.wpexpertdeveloper.com%2Fwppcp-category-restrictions-addon%2F|||” font_preset=”mpc_preset_20″ font_color=”#ffffff” font_size=”16″ font_transform=”uppercase” font_align=”center” title=”VIEW MORE” background_color=”#2bb3e7″ border_divider=”true” border_css=”border-top:2px;border-right:0px;border-bottom:2px;border-left:0px;border-color:#ffffff;border-style:solid;border-radius:0px;” padding_divider=”true” padding_css=”padding-top:12px;padding-right:32px;padding-bottom:12px;padding-left:32px;” margin_divider=”true” margin_css=”margin-top:11px;” hover_font_color=”#2bb3e7″ hover_background_color=”#ffffff” hover_background_effect=”expand-horizontal” hover_background_offset=”0″ hover_border_divider=”true” hover_border_css=”border-radius:0px;” mpc_tooltip__border_divider=”true” mpc_tooltip__padding_divider=”true” class=”wpexpert-wpro-ad-free-docs-button”]