Support » Plugin: Deploy with NetlifyPress » Dynamically set hook URL

  • Resolved Eddy


    Hey Nahid, firstly great plugin. Really useful.

    Is there a way to dynamically set the hook url for automated deployments? E.g. when I publish a Staging site to a Production site that the Production hook doesn’t get overwritten with the Staging hook as the DB gets copied across?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nahid Ferdous Mohit


    Hey @jameseddyedwards!
    I hope you are having a great day!

    Thank you for your query.

    Unfortunately, something like that isn’t possible at the moment, out of the box.

    However, your requirement sounds exciting and I’d like to explore the possibility of including it into the plugin. If possible, could you share a wider use case of this feature so that I can get a clearer idea of how it will function?

    Thank you!

    Kind regards,

    Thread Starter Eddy


    Hey Nahid,

    Apologies for the delayed response.

    Sure, so our use case is that we use WPEngine to deploy our site. So we have both a Staging and a production WordPress instance. When we deploy Staging to live the DB is copied too so if the Staging instance has a Netlify hook for a Staging deployment then live would inherit that Staging hook rather than persisting a production hook.

    I think other plugins get around this by allowing you to set a config option in the wp-config.php file. If set, your Netlify plugin would use that value as the hook. Otherwise it would use the value defined in the UI.

    I hope that helps. Happy to provide any more info if needed.

    All the best,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dynamically set hook URL’ is closed to new replies.