If you are using the Claim Listings addon, the following required question will be added to the Add Listing form:

You can hide this from the form by adding some code to functions.php of your child theme or using the Code Snippets plugin.
This code will hide it and set the any new listings added from the frontend as Claimed:

function my_geodir_add_claim_fields_before_main_form(){
?>
<input type="hidden" value="1" name="claimed" />
<?php
}
remove_action('geodir_before_main_form_fields' , 'geodir_add_claim_fields_before_main_form', 1); 
add_action('geodir_before_main_form_fields' , 'my_geodir_add_claim_fields_before_main_form', 1);

Changing

<input type="hidden" value="1" name="claimed" />

to

<input type="hidden" value="0" name="claimed" />

will set all new listings added from the frontend as Unclaimed.

Please log in to rate this.
1 person found this helpful.


Category: Claim Listings

← FAQs