# Gform\_get\_meta returns nothing \[RESOLVED\]

**URL:** <https://community.gravityforms.com/t/gform-get-meta-returns-nothing-resolved/17567>\
**Category:** Get Help\
**Tags:** gform\_get\_meta, gform\_is\_feed\_asynchronous-filter, advanced-post-creation\
**Created:** [May 29, 2024, 7:22pm UTC](https://community.gravityforms.com/t/gform-get-meta-returns-nothing-resolved/17567 "2024-05-29T19:22:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![westley](https://avatars.discourse-cdn.com/v4/letter/w/9de0a6/32.png) [@westley](https://community.gravityforms.com/u/westley)\
**Post date:** [May 29, 2024, 7:22pm UTC](https://community.gravityforms.com/t/gform-get-meta-returns-nothing-resolved/17567/1 "2024-05-29T19:22:00Z")

</div>

HI,

I have the following snippet of code that has been working for several years. Recently updated GravityForms and now it seems like the gform\_get\_meta function is not returning anything.

```auto
add_action( 'gform_after_submission', 'set_post_content', 10, 2 );
function set_post_content( $entry, $form ) {
     

    //if the Advanced Post Creation add-on is used, more than one post may be created for a form submission
    //the post ids are stored as an array in the entry meta
    $created_posts = gform_get_meta( $entry['id'], 'gravityformsadvancedpostcreation_post_id' );
    foreach ( $created_posts as $objpost )
    {
        $post_id = $objpost['post_id'];
        $post = get_post( $post_id );

I cannot figure out why it is returning empty. When I use phpAdmin to look at the meta table, I can see the records in there.

Thanks,
Westley

```

---

<div class="post-metadata">

**Author:** ![faisalahammad](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/faisalahammad/32/13948_2.png) [@faisalahammad](https://community.gravityforms.com/u/faisalahammad)\
**Post date:** [May 29, 2024, 8:31pm UTC](https://community.gravityforms.com/t/gform-get-meta-returns-nothing-resolved/17567/2 "2024-05-29T20:31:30Z")

</div>

Hey Westley,

It looks like the hook has not been depricated and still available in the following URL. Do you have any update regarding this, @chrishajer?

> **[gform\_get\_meta()](https://docs.gravityforms.com/gform_get_meta/)**
>
> Learn how to retrieve meta data in Gravity Forms. Effectively access and manage additional data tied to your entries.

---

<div class="post-metadata">

**Author:** ![westley](https://avatars.discourse-cdn.com/v4/letter/w/9de0a6/32.png) [@westley](https://community.gravityforms.com/u/westley)\
**Post date:** [May 29, 2024, 9:08pm UTC](https://community.gravityforms.com/t/gform-get-meta-returns-nothing-resolved/17567/3 "2024-05-29T21:08:36Z")

</div>

If it is on tap to be deprecated, what should I use instead?

---

<div class="post-metadata">

**Author:** ![travislopes](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/travislopes/32/14645_2.png) [@travislopes](https://community.gravityforms.com/u/travislopes)\
**Post date:** [May 30, 2024, 2:38am UTC](https://community.gravityforms.com/t/gform-get-meta-returns-nothing-resolved/17567/4 "2024-05-30T02:38:16Z")

</div>

This is because Advanced Post Creation Add-On feeds now run asynchronously, meaning when your custom hook runs, the post has not been created yet.

You can change this using the [gform\_is\_feed\_asynchronous filter](https://docs.gravityforms.com/gform_is_feed_asynchronous/) to disable async feed processing for Advanced Post Creation feeds.

---

<div class="post-metadata">

**Author:** ![westley](https://avatars.discourse-cdn.com/v4/letter/w/9de0a6/32.png) [@westley](https://community.gravityforms.com/u/westley)\
**Post date:** [May 30, 2024, 3:36am UTC](https://community.gravityforms.com/t/gform-get-meta-returns-nothing-resolved/17567/5 "2024-05-30T03:36:32Z")

</div>

Thanks a lot Travis!

That did the trick. I just wish somewhere in the documentation I had seen a reference to that or at least the fact that the Advanced Post Creation Add-on switched to asynchronous processing.

Thanks again!

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [May 30, 2024, 2:30pm UTC](https://community.gravityforms.com/t/gform-get-meta-returns-nothing-resolved/17567/6 "2024-05-30T14:30:04Z")

</div>



---

<div class="post-metadata">

**Author:** ![richardw8k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/richardw8k/32/2354_2.png) [@richardw8k](https://community.gravityforms.com/u/richardw8k)\
**Post date:** [June 3, 2024, 8:57am UTC](https://community.gravityforms.com/t/gform-get-meta-returns-nothing-resolved/17567/7 "2024-06-03T08:57:32Z")

</div>

The following page of the documentation lists which add-ons use async/background processing and the version it was enabled in:

> **[Add-On Support for Background Feed Processing](https://docs.gravityforms.com/support-background-feed/)**
>
> Background or async feed processing is a method that can be used to improve form submission performance.
