Forum Replies Created

Viewing 2 Topics - 1 through 2 (of 2 total)
Author Posts
April 9, 2014 at 11:53 pm in reply to: Fields not saved 18412
alsur alsur

I was wondering if there are references/docs regarding PODS and WPUF integration.

Currently only a Gravity Form integration is available but with the sophisticated builders and relation handling of PODS it would be great to see a plugin to integrate PODS elements (metadata) as available to publish from WPUF back.

I’ve read and old entry from Tareq regarding this on WP forums. Any realistic chance of that happening?

Thanks.

September 27, 2013 at 11:14 pm in reply to: Hook to update user profiles metadata 8507
alsur alsur

Thanks. We now paint the ACF form correctly “inside” the WPUF form and we’ve checked the variables arrive correctly by post, but when we hook to the do_action save of ACF nothing gets saved. I understand this might be out of the WPUF concept but any help or alternative hook to connect to would be appreciated.

Code we are using currently:


add_action('acf_form', 'acf_user_metadatas', 10, 3 );
function acf_user_metadatas( $form_id, $post_id, $form_settings ) {
acf_form(array(
'field_groups' => array(54),
'form' => false
));
}

function update_my_brand_new_hook( $post_id ) {

$user_id = wp_get_current_user();

// $post_id to save against
$post_id = 'user_' . $user_id;

// update the post
do_action('acf/save_post', $post_id);

//print_r($_POST);
}

add_action( 'wpuf_update_profile', 'update_my_brand_new_hook' );

Viewing 2 Topics - 1 through 2 (of 2 total)