public static function is_logging_enabled($column, $value) { $excluded_values = MainWP_WP_Stream_Settings::get_excluded_by_key($column); $bool = !in_array($value, $excluded_values); return $bool; }
public static function add_excluded_record_args($args) { // Remove record of excluded connector $args['connector__not_in'] = MainWP_WP_Stream_Settings::get_excluded_by_key('connectors'); // Remove record of excluded context $args['context__not_in'] = MainWP_WP_Stream_Settings::get_excluded_by_key('contexts'); // Remove record of excluded actions $args['action__not_in'] = MainWP_WP_Stream_Settings::get_excluded_by_key('actions'); // Remove record of excluded author $args['author__not_in'] = MainWP_WP_Stream_Settings::get_excluded_by_key('authors'); // Remove record of excluded author role $args['author_role__not_in'] = MainWP_WP_Stream_Settings::get_excluded_by_key('roles'); // Remove record of excluded ip $args['ip__not_in'] = MainWP_WP_Stream_Settings::get_excluded_by_key('ip_addresses'); return $args; }