Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Abidemi Kusimo

    (@kusimo)

    Hello @cyl888, it is a feature that I can look into but you can add custom JS in the plugin file located at ‘/frontend/index.js’ inside the plugin directory.

    if (document.body.classList.contains(‘logged-in’)) {
    waitTime = 0;
    }

    Add the above code on line 50.

    The only issue is when the plugin is updated, you will lose the changes.

    Thanks for the suggestion.

    Plugin Author Abidemi Kusimo

    (@kusimo)

    Hello @cyl888, I added the function for the user’s role (version 1.2.3). You can access it through Gutenberg or use a shortcode like below.

    [quick_download_button button_type="small" title="Download" wait="20" user_must_be="loggedin" extension="1" extension_text="0" url="https://localhost/wordpress/sites/myfile.mp4"]

    The key attribute is ‘user_must_be’ you can pass values like ‘subscriber, administrator, customer’ or any user’s attribute that exists on your site.

    I hope you enjoy using the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is it possible to add user roles function?’ is closed to new replies.