Activity Log - Version 2.1.9

Version Description

  • New! Store all WooCommerce settings (#62)
  • Tested up to WordPress v4.0
Download this release

Release Info

Developer KingYes
Plugin Icon 128x128 Activity Log
Version 2.1.9
Comparing to
See all releases

Code changes from version 2.1.8 to 2.1.9

aryo-activity-log.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://wordpress.org/plugins/aryo-activity-log/
5
  Description: Get aware of any activities that are taking place on your dashboard! Imagine it like a black-box for your WordPress site. e.g. post was deleted, plugin was activated, user logged in or logged out - it's all these for you to see.
6
  Author: Yakir Sitbon, Maor Chasen, Ariel Klikstein
7
  Author URI: http://www.aryodigital.com
8
- Version: 2.1.8
9
  Text Domain: aryo-aal
10
  Domain Path: /language/
11
  License: GPLv2 or later
5
  Description: Get aware of any activities that are taking place on your dashboard! Imagine it like a black-box for your WordPress site. e.g. post was deleted, plugin was activated, user logged in or logged out - it's all these for you to see.
6
  Author: Yakir Sitbon, Maor Chasen, Ariel Klikstein
7
  Author URI: http://www.aryodigital.com
8
+ Version: 2.1.9
9
  Text Domain: aryo-aal
10
  Domain Path: /language/
11
  License: GPLv2 or later
classes/class-aal-integration-woocommerce.php CHANGED
@@ -3,35 +3,50 @@
3
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
4
 
5
  class AAL_Integration_WooCommerce {
6
-
 
 
7
  public function init() {
8
  if ( ! class_exists( 'Woocommerce' ) )
9
  return;
10
-
11
  add_filter( 'aal_whitelist_options', array( &$this, 'wc_aal_whitelist_options' ) );
 
12
  }
13
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  public function wc_aal_whitelist_options( $whitelist_options ) {
15
- // I just add few options for base code, later I'll add more.
16
- // TODO: Use with any filter from WC for auto make this array.
17
- $wc_options = array(
18
- 'woocommerce_currency',
19
- 'woocommerce_enable_coupons',
20
- 'woocommerce_weight_unit',
21
- 'woocommerce_dimension_unit',
22
- 'woocommerce_enable_sku',
23
- 'woocommerce_default_gateway',
24
- 'woocommerce_gateway_order',
25
- 'woocommerce_calc_shipping',
26
- 'woocommerce_default_shipping_method',
27
- );
28
-
29
- return array_unique( array_merge( $whitelist_options, $wc_options ) );
30
  }
31
-
32
  public function __construct() {
33
  add_action( 'init', array( &$this, 'init' ) );
34
  }
35
-
36
  }
37
  new AAL_Integration_WooCommerce();
3
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
4
 
5
  class AAL_Integration_WooCommerce {
6
+
7
+ private $_wc_options = array();
8
+
9
  public function init() {
10
  if ( ! class_exists( 'Woocommerce' ) )
11
  return;
12
+
13
  add_filter( 'aal_whitelist_options', array( &$this, 'wc_aal_whitelist_options' ) );
14
+ add_filter( 'woocommerce_get_settings_pages', array( &$this, 'wc_get_settings_pages' ), 9999 );
15
  }
16
+
17
+ /**
18
+ * @param WC_Settings_Page[] $settings
19
+ *
20
+ * @return WC_Settings_Page[]
21
+ */
22
+ public function wc_get_settings_pages( $settings ) {
23
+ if ( empty( $this->_wc_options ) ) {
24
+ $wc_exclude_types = array(
25
+ 'title',
26
+ 'sectionend',
27
+ );
28
+ $this->_wc_options = array();
29
+
30
+ foreach ( $settings as $setting ) {
31
+ foreach ( $setting->get_settings() as $option ) {
32
+ if ( isset( $option['id'] ) && ( ! isset( $option['type'] ) || ! in_array( $option['type'], $wc_exclude_types ) ) )
33
+ $this->_wc_options[] = $option['id'];
34
+ }
35
+ }
36
+ }
37
+ return $settings;
38
+ }
39
+
40
  public function wc_aal_whitelist_options( $whitelist_options ) {
41
+ if ( ! empty( $this->_wc_options ) ) {
42
+ $whitelist_options = array_unique( array_merge( $whitelist_options, $this->_wc_options ) );
43
+ }
44
+ return $whitelist_options;
 
 
 
 
 
 
 
 
 
 
 
45
  }
46
+
47
  public function __construct() {
48
  add_action( 'init', array( &$this, 'init' ) );
49
  }
50
+
51
  }
52
  new AAL_Integration_WooCommerce();
language/aryo-aal.pot CHANGED
@@ -6,9 +6,9 @@
6
  #, fuzzy
7
  msgid ""
8
  msgstr ""
9
- "Project-Id-Version: aryo-activity-log 2.1.8\n"
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2014-08-27 08:22+0300\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
6
  #, fuzzy
7
  msgid ""
8
  msgstr ""
9
+ "Project-Id-Version: aryo-activity-log 2.1.9\n"
10
  "Report-Msgid-Bugs-To: \n"
11
+ "POT-Creation-Date: 2014-09-04 18:57+0300\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: pojo.me, KingYes, ariel.k, maor
3
  Tags: administration, activity, event, monitor, multisite, multi-users, log, logger, audit log, stats, security, tracking, woocommerce, notifications, email notifications
4
  Requires at least: 3.5
5
- Tested up to: 3.9.2
6
- Stable tag: 2.1.8
7
  License: GPLv2 or later
8
 
9
  Get aware of any activities that are taking place on your dashboard! Imagine it like a black-box for your WordPress site.
@@ -34,7 +34,7 @@ If you have tens of users or more, you really can’t know who did it. This plug
34
  * <strong>Setting</strong> - General, Writing, Reading, Discussion, Media, Permalinks
35
  * <strong>Options</strong> - Can be extend by east filter
36
  * <strong>Export</strong> - User download export file from the site
37
- * <strong>WooCommerce</strong> - Few options updated (will be more soon)
38
  * <strong>bbPress</strong> - Forums, Topics, Replies, Taxonomies and other actions
39
  * and much more...
40
 
@@ -89,6 +89,10 @@ Would you like to like to contribute to Activity Log? You are more than welcome
89
 
90
  == Changelog ==
91
 
 
 
 
 
92
  = 2.1.8 =
93
  * New! Now tracking when plugins installed and updated ([#59](https://github.com/KingYes/wordpress-aryo-activity-log/pull/59) and [#43](https://github.com/KingYes/wordpress-aryo-activity-log/issues/43))
94
 
@@ -96,7 +100,7 @@ Would you like to like to contribute to Activity Log? You are more than welcome
96
  * New! Now tracking when user download export file from the site ([#58](https://github.com/KingYes/wordpress-aryo-activity-log/issues/58) and [#63](https://github.com/KingYes/wordpress-aryo-activity-log/pull/63))
97
 
98
  = 2.1.6 =
99
- * Tested up to WordPress v3.9.2.
100
 
101
  = 2.1.5 =
102
  * New! Now tracking when theme installed, updated, deleted ([#44](https://github.com/KingYes/wordpress-aryo-activity-log/issues/44))
@@ -120,7 +124,7 @@ Would you like to like to contribute to Activity Log? You are more than welcome
120
  * Fixed an error that occurred on PHP 5.5
121
 
122
  = 2.0.7 =
123
- * Tested up to WordPress v3.9.
124
 
125
  = 2.0.6 =
126
  * Fixed! Random fatal error ([topic](https://github.com/KingYes/wordpress-aryo-activity-log/issues/32))
2
  Contributors: pojo.me, KingYes, ariel.k, maor
3
  Tags: administration, activity, event, monitor, multisite, multi-users, log, logger, audit log, stats, security, tracking, woocommerce, notifications, email notifications
4
  Requires at least: 3.5
5
+ Tested up to: 4.0
6
+ Stable tag: 2.1.9
7
  License: GPLv2 or later
8
 
9
  Get aware of any activities that are taking place on your dashboard! Imagine it like a black-box for your WordPress site.
34
  * <strong>Setting</strong> - General, Writing, Reading, Discussion, Media, Permalinks
35
  * <strong>Options</strong> - Can be extend by east filter
36
  * <strong>Export</strong> - User download export file from the site
37
+ * <strong>WooCommerce</strong> - Monitor all shop options
38
  * <strong>bbPress</strong> - Forums, Topics, Replies, Taxonomies and other actions
39
  * and much more...
40
 
89
 
90
  == Changelog ==
91
 
92
+ = 2.1.9 =
93
+ * New! Store all WooCommerce settings ([#62](https://github.com/KingYes/wordpress-aryo-activity-log/issues/62))
94
+ * Tested up to WordPress v4.0
95
+
96
  = 2.1.8 =
97
  * New! Now tracking when plugins installed and updated ([#59](https://github.com/KingYes/wordpress-aryo-activity-log/pull/59) and [#43](https://github.com/KingYes/wordpress-aryo-activity-log/issues/43))
98
 
100
  * New! Now tracking when user download export file from the site ([#58](https://github.com/KingYes/wordpress-aryo-activity-log/issues/58) and [#63](https://github.com/KingYes/wordpress-aryo-activity-log/pull/63))
101
 
102
  = 2.1.6 =
103
+ * Tested up to WordPress v3.9.2
104
 
105
  = 2.1.5 =
106
  * New! Now tracking when theme installed, updated, deleted ([#44](https://github.com/KingYes/wordpress-aryo-activity-log/issues/44))
124
  * Fixed an error that occurred on PHP 5.5
125
 
126
  = 2.0.7 =
127
+ * Tested up to WordPress v3.9.0
128
 
129
  = 2.0.6 =
130
  * Fixed! Random fatal error ([topic](https://github.com/KingYes/wordpress-aryo-activity-log/issues/32))