PluginProbe
WP Webhooks – Automate repetitive tasks by creating powerful automation workflows directly within WordPress / 3.4.3
WP Webhooks – Automate repetitive tasks by creating powerful automation workflows directly within WordPress v3.4.3
3.4.3 3.4.2 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 2.0.0 2.0.1 2.0.2 All 49 releases
wp-webhooks / wp-webhooks.php

wp-webhooks.php in WP Webhooks – Automate repetitive tasks by creating powerful automation workflows directly within WordPress 3.4.3, at wp-webhooks.php

76 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: WP Webhooks
4 * Plugin URI: https://wp-webhooks.com/
5 * Description: Put your website on autopilot by using webhooks to get rid of manual tasks and focus on what's really important for your business.
6 * Version: 3.4.3
7 * Author: Cozmoslabs
8 * Author URI: https://wp-webhooks.com/about/
9 * License: GPL2
10 *
11 * You should have received a copy of the GNU General Public License
12 * along with TMG User Filter. If not, see <http://www.gnu.org/licenses/>.
13 */
14
15 // Exit if accessed directly.
16 if ( !defined( 'ABSPATH' ) ) exit;
17
18 // Plugin name.
19 define( 'WPWH_NAME', 'WP Webhooks' );
20
21 // Plugin version.
22 define( 'WPWH_VERSION', '3.4.3' );
23
24 // Determines if the plugin is loaded
25 define( 'WPWH_SETUP', true );
26
27 // Plugin Root File.
28 define( 'WPWH_PLUGIN_FILE', __FILE__ );
29
30 // Plugin base.
31 define( 'WPWH_PLUGIN_BASE', plugin_basename( WPWH_PLUGIN_FILE ) );
32
33 // Plugin Folder Path.
34 define( 'WPWH_PLUGIN_DIR', plugin_dir_path( WPWH_PLUGIN_FILE ) );
35
36 // Plugin Folder URL.
37 define( 'WPWH_PLUGIN_URL', plugin_dir_url( WPWH_PLUGIN_FILE ) );
38
39 // Plugin Root File.
40 define( 'WPWH_TEXTDOMAIN', 'wp-webhooks' );
41
42 if( ! defined( 'WPWHPRO_SETUP' ) ){
43
44 /**
45 * Load the main instance for our core functions
46 */
47 require_once WPWH_PLUGIN_DIR . 'core/class-wp-webhooks-pro.php';
48
49 /**
50 * The main function to load the only instance
51 * of our master class.
52 *
53 * @return object|WP_Webhooks_Pro
54 */
55 function WPWHPRO() {
56 return WP_Webhooks_Pro::instance();
57 }
58
59 WPWHPRO();
60
61 } else {
62
63 add_action( 'admin_notices', 'wpwh_premium_version_custom_notice', 100 );
64 function wpwh_premium_version_custom_notice(){
65
66 ob_start();
67 ?>
68 <div class="notice notice-warning">
69 <p><?php echo 'To use <strong>WP Webhooks Pro</strong> properly, please deactivate <strong>WP Webhooks</strong>.'; ?></p>
70 </div>
71 <?php
72 echo ob_get_clean();
73
74 }
75
76 }