33 lines
667 B
PHP
33 lines
667 B
PHP
<?php
|
|
|
|
require_once "session_dialog.php";
|
|
/*
|
|
* Plugin Name: Prijs per Postcode
|
|
* Description: veschillende prijzen per postdoce. een range posctcodes zijn "lokaal" andere zijn overig
|
|
* Author: Remo Zaros
|
|
* Version: 0.0.1
|
|
* Text Domeain: prijs-per-postcode
|
|
*/
|
|
|
|
if (!defined("ABSPATH")) {
|
|
echo "big bag of potatoes";
|
|
exit();
|
|
}
|
|
|
|
class PrijsPerPostcode
|
|
{
|
|
public function __construct()
|
|
{
|
|
add_action("init", [$this, "init"]);
|
|
add_action("rest_api_init", "register_modal_api");
|
|
}
|
|
|
|
public function init()
|
|
{
|
|
$uri = $_SERVER["REQUEST_URI"];
|
|
if_needed_place_postcode_form($uri);
|
|
}
|
|
}
|
|
|
|
new PrijsPerPostcode();
|