-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathload.php
More file actions
40 lines (37 loc) · 807 Bytes
/
load.php
File metadata and controls
40 lines (37 loc) · 807 Bytes
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
<?php
/**
* Workflow Module.
*
* @package altis/workflow
*/
namespace Altis\Workflow;
use Altis;
add_action( 'altis.modules.init', function () {
$default_settings = [
'enabled' => true,
'notifications' => [
'on-post-published' => false,
'on-submit-for-review' => false,
'on-update-assignees' => false,
'on-editorial-comment' => false,
],
'publication-checklist' => [
'enabled' => true,
'block-on-failing' => false,
'hide-column' => false,
],
'clone-amend' => [
'enabled' => true,
'post-types' => null,
'roles' => [
'editor',
'administrator',
],
'excluded-taxonomies' => null,
],
];
$options = [
'defaults' => $default_settings,
];
Altis\register_module( 'workflow', __DIR__, 'Workflow', $options, __NAMESPACE__ . '\\bootstrap' );
} );