Changeset 2482606
- Timestamp:
- 02/27/2021 09:26:46 AM (5 years ago)
- Location:
- notify-events/trunk
- Files:
-
- 4 edited
-
models/Core.php (modified) (1 diff)
-
models/Event.php (modified) (1 diff)
-
notify-events.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
notify-events/trunk/models/Core.php
r2383243 r2482606 63 63 64 64 /** 65 * @param string $plugin 66 * @return boolean 67 */ 68 public static function is_plugin_active($plugin) 69 { 70 if (!function_exists('is_plugin_active')) { 71 include_once ABSPATH . 'wp-admin/includes/plugin.php'; 72 } 73 74 return is_plugin_active( $plugin ); 75 } 76 77 /** 65 78 * @param array $links 66 79 * @param string $file 67 80 * @return array 68 81 */ 69 public function plugin_action_links($links, $file) { 82 public function plugin_action_links($links, $file) 83 { 70 84 if ($file == 'notify-events/notify-events.php') { 71 85 $settings_link = Html::a(__('Settings', WPNE), 'options-general.php?page=notify-events'); -
notify-events/trunk/models/Event.php
r2432603 r2482606 155 155 $args = array_merge_recursive($defaults, $args); 156 156 157 file_put_contents('wc_search.json', json_encode($args, 320) . PHP_EOL . PHP_EOL, FILE_APPEND);158 159 157 $events = parent::find($args); 160 158 -
notify-events/trunk/notify-events.php
r2432603 r2482606 6 6 Author: Notify.Events 7 7 Author URI: https://notify.events/ 8 Version: 1.2. 08 Version: 1.2.1 9 9 License: GPL-2.0 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 36 36 }); 37 37 38 add_action('user_register', function($user_id) {39 error_log('=== Register: ' . $user_id . ' ===');40 }, 10, 1);41 42 38 Core::instance(); 43 39 … … 45 41 WordPress::register(); 46 42 47 if ( is_plugin_active('woocommerce/woocommerce.php')) {43 if (Core::is_plugin_active('woocommerce/woocommerce.php')) { 48 44 WooCommerce::register(); 49 45 } 50 46 51 if ( is_plugin_active('contact-form-7/wp-contact-form-7.php')) {47 if (Core::is_plugin_active('contact-form-7/wp-contact-form-7.php')) { 52 48 ContactForm7::register(); 53 49 } 54 50 55 if ( is_plugin_active('wpforms-lite/wpforms.php') ||is_plugin_active('wpforms/wpforms.php')) {51 if (Core::is_plugin_active('wpforms-lite/wpforms.php') || Core::is_plugin_active('wpforms/wpforms.php')) { 56 52 WPForms::register(); 57 53 } 58 54 59 if ( is_plugin_active('ninja-forms/ninja-forms.php')) {55 if (Core::is_plugin_active('ninja-forms/ninja-forms.php')) { 60 56 NinjaForms::register(); 61 57 } -
notify-events/trunk/readme.txt
r2432603 r2482606 5 5 Requires PHP: 5.6 6 6 Tested up to: 5.5 7 Stable tag: 1.2. 07 Stable tag: 1.2.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 81 81 == Changelog == 82 82 83 = 1.2.1 = 84 Bugfixes. 85 83 86 = 1.2.0 = 84 87 Adding support for WooCommerce, Contact Form 7, WPForms and Ninja Forms plugins.
Note: See TracChangeset
for help on using the changeset viewer.