2020-08-11 18:21:57 +00:00
|
|
|
<?php
|
|
|
|
/*
|
2021-09-24 04:16:35 +00:00
|
|
|
Plugin Name: Tainacan INBCM
|
|
|
|
Plugin URI: https://tainacan.org/
|
2020-08-11 18:21:57 +00:00
|
|
|
Description: Plugin for tainacan mappers IBRAM INBCM
|
2021-09-24 04:16:35 +00:00
|
|
|
Author: Vinícius Nunes
|
2020-08-11 18:21:57 +00:00
|
|
|
Version: 0.0.1
|
|
|
|
Text Domain: tainacan-mappers-ibram-inbcm
|
|
|
|
License: GPLv2 or later
|
|
|
|
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
|
|
|
*/
|
2021-09-24 04:16:35 +00:00
|
|
|
namespace INBCM\Preset\Tainacan;
|
2020-08-11 18:21:57 +00:00
|
|
|
|
2021-09-24 04:16:35 +00:00
|
|
|
require_once __DIR__.'/app/config.php';
|
|
|
|
require_once __DIR__.'/vendor/autoload.php';
|
|
|
|
|
|
|
|
class TainacanINBCMBootstrapt {
|
2020-08-11 18:21:57 +00:00
|
|
|
|
|
|
|
public function __construct() {
|
|
|
|
add_action("tainacan-register-mappers", [$this, "registerExposerMapper"]);
|
|
|
|
}
|
|
|
|
|
|
|
|
function registerExposerMapper($exposers) {
|
2021-09-24 04:16:35 +00:00
|
|
|
$exposers->register_mapper('INBCM\Preset\Tainacan\Classes\Mapper\MapperINBCM');
|
2020-08-11 18:21:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-24 04:16:35 +00:00
|
|
|
$tainacanMapperBootstrapt = new \INBCM\Preset\Tainacan\TainacanINBCMBootstrapt();
|