-
Notifications
You must be signed in to change notification settings - Fork 0
/
the-camels-assistant.php
45 lines (36 loc) · 1.05 KB
/
the-camels-assistant.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/**
* Plugin Name: Thecamels Assistant
* Description: Thecamels Assistant helps you with maintenance of your WordPress site. It will add simply task to do on daily basis.
* Author: Thecamels
* Author URI: https://thecamels.org/
* Version: 1.2
* License: GPL3
* Text Domain: tcassistant
* Domain Path: /languages
*
* @package the-camels-assistant
*/
// Autoloader.
require_once dirname( __FILE__ ) . '/vendor/autoload.php';
global $tc_assistant_runtime;
/**
* Gets the plugin runtime.
*
* @param string $property Optional property to get.
* @return object Runtime class instance
*/
function tc_assistant_runtime( $property = null ) {
global $tc_assistant_runtime;
if ( empty( $tc_assistant_runtime ) ) {
$tc_assistant_runtime = new TheCamels\Assistant\Runtime( __FILE__ );
}
if ( null !== $property && isset( $tc_assistant_runtime->{ $property } ) ) {
return $tc_assistant_runtime->{ $property };
}
return $tc_assistant_runtime;
}
add_action( 'plugins_loaded', function() {
$runtime = tc_assistant_runtime();
$runtime->boot();
} );