• Resolved andriy14

    (@andriy14)


    Hi! Show Contacts Information no more shows. I find out, that’s because of this script I made a plugin with:

    add_filter( ‘adverts_form_load’, ‘location_to_dropdown’ );

    function location_to_dropdown( $form ) {

    if( $form[‘name’] != ‘search’ ) {
    return $form;
    }

    foreach( $form[“field”] as $key => $field ) {
    if( $field[“name”] == “location” ) {
    $field[“type”] = “adverts_field_select”;
    $field[“options”] = array(
    array(“value” => “Ки?в”, “text” => “Ки?в“, “depth” => 0),
    array(“value” => “Бердянськ”, “text” => “Бердянськ”, “depth” => 0),
    array(“value” => “Б?ла Церква”, “text” => “Б?ла Церква”, “depth” => 0),
    array(“value” => “В?нниця”, “text” => “В?нниця”, “depth” => 0),
    );
    $form[“field”][$key] = $field;
    }
    }

    return $form;
    }

    How to solve it?

    https://www.ads-software.com/plugins/wpadverts/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Showing contacts blocked by a plugin’ is closed to new replies.