Shortcode parameters

have_file_access
have_file_access parameter determines which user have access to view the files.
Accepts user capabilities or roles separated by commas, `logged_in` and `all`.
"all" is the DEFAULT value.

HAVE_FILE_ACCESS PARAMETER USE CASES

- have_file_access="all" : public access, all people can open the files.
- have_file_access="administrator" : only administrators can open the files.
- have_file_access="administrator,author,subscriber" : only administrators,
authors and subscribers can open the files.
- have_file_access="edit_posts" : only those that have the CAPABILITY
to edit posts, can open the files.
- have_file_access="subscriber,edit_posts" : only subscribers and those that
have the CAPABILITY to edit posts, can open the files.
- have_file_access="logged_in" : all logged in users can open the files.
my_doc_viewer
my_doc_viewer parameter determines in which viewer the file will be opened.
Accepts `default`, `library-viewer` or any other link.
If $have_file_access=='all', `default` is the default value,
If not, `library-viewer` is the default value.

MY_DOC_VIEWER PARAMETER USE CASES

NOTE: If have_file_access is NOT in the DEFAULT state, my_doc_viewer does NOTHING.

- my_doc_viewer="default" : the files open in the default viewer of your browser
or they are downloaded.
- my_doc_viewer="library-viewer" : the files open in the Library Viewer’ viewer.
- my_doc_viewer="https://docs.google.com/viewerng/viewer?url=" : the files open
with Google Doc Viewer.
(The advantage of google doc viewer is that opens
ALL the files -pdf,doc,docx,ppt etc- in the browser, in smartphones too)
- my_doc_viewer="http://ouo.io/qs/Is36k2da?s=" : the files open via paid URL shortener
- Or : you can use your custom viewer.
login_page
login_page parameter defines the login page that user will be redirected -if need it-,
to log in. Accepts `wp-login.php` or any slug. Default is `wp-login.php`.
DON'S USE SLUG WITH GET PARAMETERS PLEASE.

LOGIN_PAGE PARAMETER USE CASES

If have_file_access is NOT in the DEFAULT state and you had set your custom login page,
you can define it in this parameter.

- login_page="wp-login.php" : the user will be redirected in the default WP login page
to log in.
- login_page="login" : if your login page is located in the link
yoursite.com/login/
- login_page="my-account" : if your login page is located in the link
yoursite.com/my-account/
- login_page="pages/login" : if your login page is located in the link
yoursite.com/pages/login/
Scroll to top