<?php /** * Theme functions and definitions * * @package HelloElementorChild */ /** * Load child theme css and optional scripts * * @return void */ function hello_elementor_child_enqueue_scripts() { wp_enqueue_style( 'hello-elementor-child-style', get_stylesheet_directory_uri() . '/style.css', [ 'hello-elementor-theme-style', ], '1.3.8' ); /*wp_enqueue_script( 'immowpjs', get_stylesheet_directory_uri() . '/js/immowp.js', array(), '1.0.2', true );*/ } add_action( 'wp_enqueue_scripts', 'hello_elementor_child_enqueue_scripts', 20 ); add_action( 'wpcf7_before_send_mail', 'wpcf7_add_text_to_mail_body' ); function wpcf7_add_text_to_mail_body($contact_form){ global $post; $post_id = $post->ID; $mail = $contact_form->prop( 'mail' ); $wpcf7 = WPCF7_ContactForm::get_current(); $submission = WPCF7_Submission::get_instance(); if ($submission) { $posted_data = $submission->get_posted_data(); $post_id = $posted_data[ 'post-id' ]; $negociateur_email = get_post_meta($post_id, 'negociateur_email', true); if (empty($negociateur_email)) { return $contact_form; } else { $properties = $contact_form->get_properties(); $properties['mail']['recipient'] = $negociateur_email; $contact_form->set_properties($properties); return $contact_form; } } return $contact_form; } add_action( 'wpcf7_init', 'wpcf7_new_form_tag' ); function wpcf7_new_form_tag() { wpcf7_add_form_tag( 'post_id', function ( $tag ) { return '<input type="hidden" value="'.get_the_id().'" name="post-id">'; } ); } /** * Create custom post type * * @since 1.0.0 */ function wpm_custom_post_type() { $cptName = 'agents'; $labels = array( 'name' => 'Agents', 'singular_name' => 'Agent', 'add_new_item' => 'Ajouter un agent', 'edit_item' => 'Editer un agent', 'new_item' => 'Nouveau agent', 'view_item' => "Voir le agent", 'search_items' => 'Rechercher un agent', 'not_found' => 'Aucun agent trouvé', 'not_found_in_trash' => 'Aucun agent trouvé dans la corbeille', 'parent_item_colon' => '', 'menu_name' => 'Agents', 'all_items' => 'Tous les agents', 'add_new' => 'Ajouter un agent' ); $args = array( 'labels' => $labels, 'description' => 'bien', 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'publicly_queryable' => true, 'exclude_from_search' => true, 'rewrite' => array( 'slug' => 'agent'), 'capability_type' => 'post', 'has_archive' => false, 'hierarchical' => false, 'menu_position' => 3, 'show_in_rest' => true, 'query_var' => $cptName, 'menu_icon' => 'dashicons-admin-home', 'supports' => array('title', 'editor', 'thumbnail') ); register_post_type($cptName, $args); } add_action( 'init', 'wpm_custom_post_type', 0 ); Achat maison, appartement, terrain - Agence Immobilier Peret

Achetez la maison de vos rêves...

L’Agence Immobilière Peret vous accompagne tout au long de votre achat.
Vous souhaitez acheter une maison, un appartement ou encore un terrain ?
Faites appel à notre réseau de conseillers immobiliers présent dans tout le Sud-Ouest.

achat maison, appartement, terrain

achat maison, appartement, terrain

*

achat maison

Contactez-nous

Notre rôle : vous accompagner dans votre projet immobilier.

Pour toutes demandes d’informations, complétez ce formulaire et nous ferons de notre mieux pour y répondre au plus vite.