initial commit!
This commit is contained in:
32
prijs-per-postcode.php
Normal file
32
prijs-per-postcode.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?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();
|
||||
Reference in New Issue
Block a user