Easy Digital Downloads integration

Support Request

If you need help with restrict, submit a support request, and we will get back to you shortly.

Submit a Support Request

Restrict integrates nicely with Easy Digital Downloads. This allows you to use criteria specific to Easy Digital Downloads and restrict the content on your website. Of course, for this to work, a customer must be registered and logged in before they make any purchases through Easy Digital Downloads. To make sure that is the case, head to the Settings page of Easy Digital Downloads and then click Misc tab and then Checkout. Over there, you will find an option labeled Require Login which, if checked, will force customers to be registered and logged in to be able to make a purchase.

This is a crucial step since it is the only way later on for the Restrict to be able to “know” whether the customer that attempts to view certain restricted content have made a purchase for the required product.

With that out of the way, let’s see what options this integrations brings to the table.

 

Custom messages

With Easy Digital Downloads installed on the same website where you’re running Restrict, you will notice that there is another tab within Restrict settings, labeled Easy Digital Downloads.

If you navigate there, you will find that in this area you can define custom messages that will be used if users do not meet the required Easy Digital Downloads criteria for viewing specific content. There are three custom messages you can set:

  • Any product – a message that is displayed to the users who haven’t purchase any Easy Digital Downloads product and is trying to access the content that requires them to purchase at least one
  • Specific product – this message is displayed to the user that hasn’t purchased a specific Easy Digital Downloads product that is required to view the restricted content
  • Specific product (limited time) – a message displayed to the customer that purchased a specific Easy Digital Downloads product required for viewing a content but the time has expired and they are no longer able to access the content

 

Page/post content restriction

You can use Easy Digital Downloads specific criteria to restrict the content of the whole page or post by selecting Easy Digital Downloads Users from the Content Available To dropdown menu. By selecting this criteria, two options will appear:

  • Any product – user is required to purchase any Easy Digital Downloads product in order to be able to access the content
  • Specific product – in order to see the content of this page or post, user is required to purchase a specific Easy Digital Downloads Product which you should select in the field below this option. Also, if this option is selected, you can limit the time during which the content will be visible to the user. If Indefinitely is set, then there will be no time limitation while if you select Limited time after purchase then you will be able to set the number of days, hours and minutes during which the user will be able to access this content.

 

Restrict part of the content

With Easy Digital Downloads plugin installed alongside Restrict, you can also restrict part of the content of any page or post using Easy Digital Downloads specific criteria in the Shortcodes area of Restrict.

This option allows you to easily create a shortcode with Easy Digital Downloads specific criteria that you can then use to restrict access to part of the content of your page or post as explained here.

You can also add a custom message if needed by using a protected_message argument as part of the shortcode. For example, your shortcode can look something like this:

[rsc_restrict_content allowed_to=”edd” edd_options=”anything” protected_message=”YOUR MESSAGE HERE”]Your content here[/rsc_restrict_content]

 

Category restriction

Restricting categories is also possible with Easy Digital Downloads specific criteria. Simply select Easy Digital Downloads Users from the dropdown menu Posts from category visible to: when creating new or editing existing post category.

 

Widget restriction

Similarly to page/post content restriction, you can also restrict visibility of the widgets on your website using Easy Digital Downloads criteria.

When adding new or editing existing widget, simply select Easy Digital Downloads Users from the Widget visible to: dropdown menu.

 

Menu item restriction

Last but not least, you can also restrict the visibility of menu items based on Easy Digital Downloads criteria. You will notice that each menu item contains Menu item visible to: dropdown menu from which you can select Easy Digital Downloads Users