an
groups-icon

Add Listing Hooks

Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
  • Version 9
    Jonah Peranson
    0 points
    Beginner

    I would like to add a function into the Add Listing page that sets the post_title based on two custom fields. So rather than the user inputting the post title I would have a function that sets the post_title using something like this:
    $my_post[‘post_title’] = esc_html($_POST[‘custom’][‘field1’] . $_POST[‘custom’][‘field2’]);

    Does anyone know what hook/filter I can use? I have found these but there isn’t much documentation available on what each of them does:

    hook_add_form_top()
    hook_add_form_bottom()
    hook_add_form_post_save_data($val)
    hook_add_form_post_save_extra($postID)
    hook_add_build_field($string)

    January 13, 2014 at 4:30 am
  • Jonah Peranson
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    January 14, 2014 at 2:26 am
  • Mark Fail
    11,845 points
    Platinum User
    Bronze User Silver User Gold User Platinum User Helpful Award Fast Responder Thank You Coffee Villian Award Video Testimonial
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    January 14, 2014 at 6:29 am
  • Jonah Peranson
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    January 14, 2014 at 2:56 pm

464

Views

3

Replies