PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Including GF in a custom /wp-content/install.php

  1. http://wpkgr.com/ provides a way to select commonly used plugins and themes to be automagically downloaded and activated during install provided they are hosted on the WP.org repository. This WPBits post outlines how to make your own defaults (posts, pages, options, etc) using the same /wp-content/install.php file to add to or replace the Hello World features with commonly used categories, pages, etc.

    Wondering if anyone else has done anything similar to this and GF.

    The following potential hazards come to mind as I'm about to start trying to build a custom install script that will allow me to deploy the "standard configuration" stuff I do for a site rather than having to click through many steps in the admin console to get to the preferred baseline state (default landing page, permalinks structure, etc).

    1. How to have the install.php connect to the GF repository
    2. How to do so without storing my license key in the code. /wp-admin/install.php calls a function display_setup_form that doesn't have an action or filter tied to it, but would be the best case scenario to include a text field on the install screen to populate license key. Adding a constant which I remove before deployment might be the next best solution.
    3. Assuming #2 can be solved as a install screen customization without core mod, how the affiliate program might work if this were something I shared for others to use to sign-up for their own GF prior to registration. Sort of a "click here to buy it and then paste in your license key and the install will do the rest" type of thing

    Thanks,
    Jamie

    Posted 12 years ago on Monday March 19, 2012 | Permalink
  2. This is going to be very difficult because Gravity Forms does not have a public repository that can be accessed the way the WordPress.org plugin repository can be accessed. So there is nothing you can call that will return a URL to the plugin zip file so that it can be installed.

    What you could do, however, is handle this yourself. Create your own solution and maintain a copy of the latest version of Gravity Forms wherever you do so. Make your own installer that you can use the way you described.

    Posted 12 years ago on Tuesday March 27, 2012 | Permalink