-
Notifications
You must be signed in to change notification settings - Fork 0
/
pronamic-post-expiration.php
51 lines (46 loc) · 1.11 KB
/
pronamic-post-expiration.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
46
47
48
49
50
51
<?php
/**
* Plugin Name: Pronamic Post Expiration
* Plugin URI: https://www.pronamic.eu/plugins/pronamic-post-expiration/
* Description: Easily manage and automate post expiration in WordPress.
*
* Version: 1.0.0
* Requires at least: 5.9
* Requires PHP: 8.1
*
* Author: Pronamic
* Author URI: https://www.pronamic.eu/
*
* Text Domain: pronamic-post-expiration
* Domain Path: /languages/
*
* License: proprietary
*
* GitHub URI: https://github.com/pronamic/pronamic-post-expiration
*
* @author Pronamic <[email protected]>
* @copyright 2005-2024 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPressPostExpiration
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Autoload.
*/
require_once __DIR__ . '/vendor/autoload.php';
/**
* Action Scheduler.
*/
require_once __DIR__ . '/vendor/woocommerce/action-scheduler/action-scheduler.php';
/**
* Plugin.
*/
add_action(
'plugins_loaded',
function () {
load_plugin_textdomain( 'pronamic-post-expiration', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
}
);
\Pronamic\WordPressPostExpiration\Plugin::instance()->setup();