Gravity Forms + Custom Post Types
[resolved] Can't access the terms with gform_after_submission hook (2 posts)

  1. Flynn O'Connor
    Posted 3 years ago #


    I've created a function to email me when someone submits a new post but I'm having trouble with the taxonomies. The function can't get the tax terms, it just returns an empty array or object.

    I need to get those terms as the function will eventually look for other users who are interested in those terms and email them. Why can I not get access to those terms and is there some other hook I could use instead?

    My code: https://gist.github.com/thoronas/87633873faef07196bc8


  2. Flynn O'Connor
    Posted 3 years ago #

    In case anyone ever needs to do the same thing I found out the problem.

    The plugin uses gform_post_submission to save the taxonomies. This fires after gform_after_submission which is what I was using for my mail function. When I added the mail function to the action gform_after_submission it works fine.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Gravity Forms + Custom Post Types
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.