summaryrefslogtreecommitdiff
path: root/editor-for-timber.php
blob: 59001609ef9f6baab5d3d25db408ea273cb0811b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
/**
 * Plugin Name: Editor for Timber
 * Description: Admin Editor for Timber
 * Plugin URI: https://gitlab.com/DRogueRonin/wp-plugin-timber-editor
 * Author: Daniel Weipert
 * Version: 1.0.2
 * Author URI: https://dweipert.de
*/

require 'vendor/autoload.php';

add_action('plugins_loaded', 'timberEditor');
function timberEditor() {
    new \TimberEditor\TimberEditor();
}

function timberEditorAssetsUrl($path) {
    return plugins_url("assets/$path", __FILE__);
}