Hi I searched the forum to see how I would remove the preview.
I have looked at the preview-buttons.php code and basically tried to add it to the template_actions.php but when you click Submit, just goes to the home page:
$form_action_url = geodir_get_ajax_url() . '&geodir_ajax=add_listing&ajax_action=publish&listing_type=gd_place';
$form_action_url = apply_filters('geodir_publish_listing_form_action', $form_action_url);
?>
<form name="propertyform" id="propertyform" action="<?php echo $form_action_url;?>" method="post" enctype="multipart/form-data">
<input type="hidden" name="preview" value="<?php echo sanitize_text_field($listing_type);?>"/>
<input type="hidden" name="listing_type" value="<?php echo sanitize_text_field($listing_type);?>"/>
This is what I see in Console:
<form name=”propertyform” id=”propertyform” action=”http://www.hexsocialmedia.com/pad/wp-admin/admin-ajax.php?action=geodir_ajax_action&geodir_ajax=add_listing&ajax_action=publish&listing_type=gd_place” method=”post” enctype=”multipart/form-data”>
<input type=”hidden” name=”preview” value=”gd_place”>
<input type=”hidden” name=”listing_type” value=”gd_place”>
<input type=”hidden” name=”add_listing_page_id” value=”10″>
How would one remove this, and go from Add Listing Form, direct to Payment ?