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:
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)
Members Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login Now