PluginProbe
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI / 6.0.0
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI v6.0.0
6.0.3 6.0.2 6.0.1 6.0.0 5.8.6 5.8.5 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.7.9.2 5.7.9.1 5.7.8 5.7.9 5.7.6 5.7.7 5.7.5 5.7.4 5.7.3 5.7.2 5.7.1 trunk 5.6.0 5.6.1 All 34 releases
automatorwp / integrations / automatorwp / automatorwp.php

automatorwp.php in AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI 6.0.0, at integrations/automatorwp/automatorwp.php

118 lines 4.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * AutomatorWP
4 *
5 * @package AutomatorWP\Integrations\AutomatorWP
6 * @author AutomatorWP <[email protected]>, Ruben Garcia <[email protected]>
7 * @since 1.0.0
8 */
9 // Exit if accessed directly
10 if( !defined( 'ABSPATH' ) ) exit;
11
12 // Automations
13 require_once plugin_dir_path( __FILE__ ) . 'automations/all-users.php';
14 require_once plugin_dir_path( __FILE__ ) . 'automations/all-posts.php';
15
16 // Triggers
17 require_once plugin_dir_path( __FILE__ ) . 'triggers/complete-automation.php';
18 require_once plugin_dir_path( __FILE__ ) . 'triggers/user-created.php';
19 require_once plugin_dir_path( __FILE__ ) . 'triggers/post-created.php';
20 require_once plugin_dir_path( __FILE__ ) . 'triggers/all-users.php';
21 require_once plugin_dir_path( __FILE__ ) . 'triggers/all-posts.php';
22 // Actions
23 require_once plugin_dir_path( __FILE__ ) . 'actions/anonymous-user.php';
24 require_once plugin_dir_path( __FILE__ ) . 'actions/redirect-user.php';
25 require_once plugin_dir_path( __FILE__ ) . 'actions/call-function.php';
26 require_once plugin_dir_path( __FILE__ ) . 'actions/do-action.php';
27 require_once plugin_dir_path( __FILE__ ) . 'actions/add-log.php';
28 require_once plugin_dir_path( __FILE__ ) . 'actions/run-all-users-automation.php';
29 require_once plugin_dir_path( __FILE__ ) . 'actions/run-all-posts-automation.php';
30 // Filters
31 require_once plugin_dir_path( __FILE__ ) . 'filters/flat-condition.php';
32
33 /**
34 * Registers this integration
35 *
36 * @since 1.0.0
37 */
38 function automatorwp_register_automatorwp_integration() {
39
40 automatorwp_register_integration( 'automatorwp', array(
41 'label' => 'AutomatorWP',
42 'icon' => plugin_dir_url( __FILE__ ) . 'assets/automatorwp.svg',
43 ) );
44
45 // Groups
46 automatorwp_register_integration( 'code', array(
47 'label' => 'Code',
48 'icon' => plugin_dir_url( __FILE__ ) . 'assets/code.svg',
49 ) );
50
51 automatorwp_register_integration( 'comments', array(
52 'label' => 'Comments',
53 'icon' => plugin_dir_url( __FILE__ ) . 'assets/comments.svg',
54 ) );
55
56 automatorwp_register_integration( 'emails', array(
57 'label' => 'Emails',
58 'icon' => plugin_dir_url( __FILE__ ) . 'assets/emails.svg',
59 ) );
60
61 automatorwp_register_integration( 'posts', array(
62 'label' => 'Posts',
63 'icon' => plugin_dir_url( __FILE__ ) . 'assets/posts.svg',
64 ) );
65
66 automatorwp_register_integration( 'redirect', array(
67 'label' => 'Redirect',
68 'icon' => plugin_dir_url( __FILE__ ) . 'assets/redirect.svg',
69 ) );
70
71 automatorwp_register_integration( 'users', array(
72 'label' => 'Users',
73 'icon' => plugin_dir_url( __FILE__ ) . 'assets/users.svg',
74 ) );
75
76 automatorwp_register_integration( 'button', array(
77 'label' => 'Button',
78 'icon' => plugin_dir_url( __FILE__ ) . 'assets/button.svg',
79 ) );
80
81 automatorwp_register_integration( 'link', array(
82 'label' => 'Link',
83 'icon' => plugin_dir_url( __FILE__ ) . 'assets/link.svg',
84 ) );
85
86 automatorwp_register_integration( 'multimedia_content', array(
87 'label' => 'Multimedia Content',
88 'icon' => plugin_dir_url( __FILE__ ) . 'assets/multimedia-content.svg',
89 ) );
90
91 automatorwp_register_integration( 'run_now', array(
92 'label' => 'Run Now',
93 'icon' => plugin_dir_url( __FILE__ ) . 'assets/run-now.svg',
94 ) );
95
96 }
97 add_action( 'automatorwp_init', 'automatorwp_register_automatorwp_integration', 1 );
98
99 /**
100 * Registers integration labels (due to text domain that requires to be in init)
101 *
102 * @since 1.0.0
103 */
104 function automatorwp_register_automatorwp_integration_labels() {
105
106 AutomatorWP()->integrations['code']['label'] = __( 'Code', 'automatorwp' );
107 AutomatorWP()->integrations['comments']['label'] = __( 'Comments', 'automatorwp' );
108 AutomatorWP()->integrations['emails']['label'] = __( 'Emails', 'automatorwp' );
109 AutomatorWP()->integrations['posts']['label'] = __( 'Posts', 'automatorwp' );
110 AutomatorWP()->integrations['redirect']['label'] = __( 'Redirect', 'automatorwp' );
111 AutomatorWP()->integrations['users']['label'] = __( 'Users', 'automatorwp' );
112 AutomatorWP()->integrations['button']['label'] = __( 'Button', 'automatorwp' );
113 AutomatorWP()->integrations['link']['label'] = __( 'Link', 'automatorwp' );
114 AutomatorWP()->integrations['multimedia_content']['label'] = __( 'Multimedia Content', 'automatorwp' );
115 AutomatorWP()->integrations['run_now']['label'] = __( 'Run Now', 'automatorwp' );
116
117 }
118 add_action( 'init', 'automatorwp_register_automatorwp_integration_labels' );