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.

[SOLVED] possible bug at 1.5 rc4.2

  1. obvio
    Member

    looks like gform_post_data_ID doesn't fire (used to in older versions)..

    trying this and doesn't work anymore..

    function set_expiry_date($post_data, $form){
    
    	$post_data['post_type'] = 'My_CustomPostType';
    
    	$post_data['post_custom_fields']['expiration'] = strtotime('+1 month', strtotime($post_data['post_custom_fields']['expiration']));
    
    	return $post_data;
    }
    add_filter("gform_post_data_3", "set_expiry_date", 10, 2);
    Posted 13 years ago on Tuesday February 22, 2011 | Permalink
  2. obvio
    Member

    my mistake, hook fires properly, apologize.

    Posted 13 years ago on Tuesday February 22, 2011 | Permalink

This topic has been resolved and has been closed to new replies.