diff --git a/CHANGELOG.md b/CHANGELOG.md index eb4c15c..9ea751a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). + +## [0.0.4] 2025-11-26 +- Fix error about textdomain loading too early + ## [0.0.3] 2025-08-15 - Move filters to register during init priority 5 diff --git a/plugin.php b/plugin.php index 25a82c4..68de22a 100644 --- a/plugin.php +++ b/plugin.php @@ -3,7 +3,7 @@ * Plugin Name: Gravity Forms Prevent Database Storing * Plugin URI: https://github.com/devgeniem/wp-gravityforms-db-prevent * Description: A Gravity Forms plugin to let the form creator decide if the values should be saved to database or not. - * Version: 0.0.3 + * Version: 0.0.4 * Author: Geniem * Author URI: http://www.geniem.fi/ * License: GPL3 @@ -44,7 +44,7 @@ public function init() { add_filter( 'gform_tooltips', [ $this, 'add_tooltip' ], 10, 1 ); add_filter( 'gform_pre_form_settings_save', [ $this, 'save_setting' ], 10, 1 ); add_filter( 'gform_after_submission', [ $this, 'delete_entry' ], 10, 2 ); - add_action( 'plugins_loaded', [ $this, 'load_textdomain' ], 10 ); + add_action( 'init', [ $this, 'load_textdomain' ], 10 ); } /**