WordPress MU Domain Mapping
Programmatically adding domains (2 posts)

  1. nfitbh
    Posted 2 years ago #

    Hi there,

    Firstly thanks for the excellent plugin.

    I would like to programatically update a site to being a domain site (i.e. not rely on any actions through the wp-admin pages). The best I can find so far is to rip the code out of dm_handle_actions(), however before doing this, I'd like to see if there is a better way of solving this problem?

    I was thinking of moving all the specific actions in dm_handle_actions() into their own functions which would form an API for other developers. Would you like me to contribute this change back?



  2. nfitbh
    Posted 2 years ago #

    In fact, we need this change so badly that I'm going to write a separate class of all of the database transactions which would be called from the current function list. I'll start with the ones that we specifically need, however if I can contribute these changes back into the core then I'll finish the job and abstract all database calls into the separate class.

    In this way, other developers would be able to programmatically use this plugin and the database layer could be kept separate from the page action code.

    Let me know your thoughts please.



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress MU Domain Mapping
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.