Loading...

Ashley T

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: PR Hijacks user_register? #10005268
    Ashley T
    Participant

    Not sure if it’s an update issue or what, but the form edit screen isn’t saving all of the customizations I’ve made anymore. Each time I click away from the edit form screen and come back, it’s back to the default fields 🙁

    in reply to: PR Hijacks user_register? #10005267
    Ashley T
    Participant

    Thanks for the suggestion! I made the change, but now my form isn’t passing my through to Paypal at all. Paypal gateway is still enabled and set to “live,” and when I edit my form, the Paypal stuff is there. The credit card and Paypal logos are NOT displaying on the live form, and the “Submit” button is creating the user, just not requiring a payment to do so 🙁

    in reply to: action hook after registration #10005254
    Ashley T
    Participant

    I’m also working on a plugin that will create a draft post when a user registers. Tried using pie_register_after_register as suggested in this thread, but it’s still not wanting to work.

    I’ve narrowed it down to having the Paypal active and installed on the reg form. Draft post is created as expected without the Paypal gateway active. As soon as I activate and register another test user…no draft post.

    I started my own topic on this, but haven’t had any bites yet. Any help is appreciated! My code is as follows:

    add_action( 'pie_register_after_register', 'restaurant_profile_create', 10, 1 );
    function restaurant_profile_create( $user_id )
    {
        // Get user info
        $user_meta = get_user_meta( $user_id, 'pie_text_7', true );
    
        // Create a new post
        $user_post = array(
            'post_author'  => $user_id,
            'post_title'   => $user_meta,
            'post_content' => print_r( $user_meta, true ),
            'post_type'    => 'post', 
        );
        // Insert the post into the database
        $post_id = wp_insert_post( $user_post ); 
        
    } 
Viewing 3 posts - 1 through 3 (of 3 total)