Home Forums Plugin Support WP User Frontend Pro Action Hook Post Selector

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  Tareq Hasan 5 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15326

    ForestNation
    Participant
    Post count: 27

    Hi,
    I am using your plugin for so users can submit their own fundraisers with the wpmu fundraiser plugin. Works very well.

    I want to allow the users to add manual pledges also so I need to create a new form where they can select the previous published post and then add data to custom fields.

    I am thinking I need to use an action hook for this post selector. SO they can choose their previous post to update.

    The code I can find so far is:

    
    
    <?php foreach($funders as $funder) : ?>
    <option <?php selected($post->post_parent,$funder->ID); ?> value="<?php echo $funder->ID ?>"><?php echo $funder->post_title; ?></option>
    <?php endforeach; ?>
    

    Any ideas?

    Thanks

    #15419

    ForestNation
    Participant
    Post count: 27

    Ok, so there are two issues.

    1. The post parent selector that I think I need to use the action hook for.

    2. The meta values for the manual pledges are stored un one metakey as an array:
    – Metakey name is “wdf_transaction” it stores array with following details:
    gross
    type
    currency_code
    first_name
    last_name
    payer_email
    gateway_public
    gateway
    status
    gateway_msg

    Those meta values are attached to custom post type called “donation” that have post_parent configured as ID of fundraising that donation was for.

    I have tried using an html field like this:
    <input type="text" name="wdf[transaction][name]">

    Doesn't work either.

    Any advice would be really appreciated.

    thanks

    #15429

    Tareq Hasan
    Keymaster
    Post count: 2831

    For the first one, you'll need to use action hook field.

    For the 2nd one, perhaps this http://docs.wedevs.com/wpuf_add_post_after_insert/

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Action Hook Post Selector’ is closed to new replies.