Viewing 1 replies (of 1 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    yes, you can do that either with the Custom Fields extension https://wpadverts.com/extensions/custom-fields/ or by adding the code below in your theme functions.php file

    
    add_filter( "adverts_form_load", function( $form ) {
      if( $form["name"] != "search" ) {
        return $form;
      }
      foreach( $form["field"] as $k => $f ) {
        if( $f["name"] == "location" ) {
          unset( $form["field"][$k] );
        }
      }
      return $form;
    } );
    
Viewing 1 replies (of 1 total)

The topic ‘Hide location’ is closed to new replies.