Support » Plugin: WP Instagram Widget » Possible that plugin works only after user agree?

  • Resolved kwmde



    first of all thank you for your great Plugin! Good Job! 🙂

    I would like to block the Plugin until the user agrees to my data protection agreement. In my cookie notice plugin I’m able to insert scriptcode which will be loaded after agreement.
    Do you have coincidentally what code I can use?
    Or any idea how can I do it?

    Best regards!

Viewing 1 replies (of 1 total)
  • Plugin Author Scott


    Hi Marco
    I do not have any code that provide this functionality. My first question would be… is it a problem that the images are requested as part of the page load? The plugin does not set any cookies and as far as I know, the Instagram CDN (where the images load from) does not collect or store any information either. So I am not sure what you would be protecting the user from.

    The best solution I can think of is to create your own plugin that uses a filter like pre_http_request and return a false API response before the agreement has been made. You can find the filter in the file documented here:

    The good thing about this approach is that it would apply to all plugins using the same remote request API.

Viewing 1 replies (of 1 total)
  • The topic ‘Possible that plugin works only after user agree?’ is closed to new replies.