M
M
MakLeR2017-07-13 15:43:55
Access rights
MakLeR, 2017-07-13 15:43:55

How to make file downloads available only after registering or subscribing to Wordpress?

Hello, know-it-alls! ;-)
Tell me, with the help of which Wordpress plugin or something else you can allow downloading files only after registering on the site or only after subscribing to the newsletter?
Example: https://www.clientbridge.ru/blog/kak-podgotovitsya... (file at the bottom of the page)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zRrr, 2017-07-16
@zRrr

is_user_logged_in()
Wrap in if, if !is_user_logged_in, then remove the link and put the onclick="alert('Иди регистрируйся');"
else attribute, output as is.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question