google-code-export / wordpress-custom-content-type-manager

Automatically exported from code.google.com/p/wordpress-custom-content-type-manager
2 stars 1 forks source link

cctm_post_form _redirect page needs access to the custom post type data that was just created #522

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
BEFORE YOU FILE: Are you using the latest version of the CCTM?  Please
check http://wordpress.org/extend/plugins/custom-content-type-manager/

What functionality do you want to see?

I'd like the thank you page (from the _redirect) to parrot some of the 
information that was just saved in the database via the cctm_post_form. 

In other words, I'd like to know the post ID for that data, when I'm on the 
thank you page.

Please provide any additional information below.

http://wordpress.org/support/topic/cctm_post_form-_redirect?replies=2#post-46227
73

Original issue reported on code.google.com by m...@griffis.net on 7 Sep 2013 at 7:51

GoogleCodeExporter commented 9 years ago
Now storing post id in the following variable:
CCTM::$post_id 

This gets set in the CCTM::post_form_handler() function -- so in your custom 
callback function, you could read the supplied arguments:

function my_custom_callback($args) {
    $result = CCTM::post_form_handler($args);  // Creates the post
    print_r($args); // this has everything that was called.
    print CCTM::$post_id; // this has the post id of the newly created post.
}

Committed revision 858099.

Original comment by ever...@fireproofsocks.com on 14 Feb 2014 at 9:05