4

I would like to know what the cleanest way to use gravity forms to submit data from my form to another page outside of WordPress is.
Our website is 100% WordPress and I need to use data of my gravity form somewhere else.

I found this blog article, that seems to provide a solution, but I really would like to avoid modifying
/wp-content/themes/*your-theme*/functions.php

I am worried about losing the changes at a WordPress / gravity forms update.

3
  • 1
    The link pretty much provides you with your answer. Editing the functions.php file of your theme is not as bad as it sounds and is the way to add custom functionality to your site without editing Wordpress or plugin core files which is a BIG no no.
    – Nicole
    Oct 22, 2012 at 15:33
  • Thanks Nicole, during wordpress standard update there is no change on this file so ?
    – Louis
    Oct 22, 2012 at 15:37
  • 2
    The functions.php file is not really a core file and is part of your theme. So when Wordpress updates it does not touch those files.
    – Nicole
    Oct 22, 2012 at 15:39

3 Answers 3

1

You can do it as a functions plugin:

http://www.doitwithwp.com/create-functions-plugin/

http://justintadlock.com/archives/2011/02/02/creating-a-custom-functions-plugin-for-end-users

1
1

Editing the functions.php file of your theme is not as bad as it sounds.

The article I had found detailed the right solution.

The functions.php file is not a WP core file, but part of your theme.
So when WordPress updates itself, it does not touch those files.
When the plugin is updated, it doesn't affect these either.

1
  • But when the theme is updated it does get overwritten.
    – s_ha_dum
    Apr 26, 2013 at 14:08
0

You can create a WordPress child theme. It's easy to do with the One-click Child Theme plugin. That way, even when you update your theme, you don't overwrite the changes you've made in functions.php

2
  • 1
    This is barely more than a link-only answer. Can you provide more detail?
    – s_ha_dum
    Apr 26, 2013 at 14:05
  • 1
    Create a WordPress child theme using the plugin mentioned and then add a clean functions.php file to that. The link you gave doesn't work with the latest GF so use the example on the GF site. May 17, 2013 at 9:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.