This commit is contained in:
Javier Casares 2026-06-09 12:49:44 +00:00
commit 30d19d38d1

View file

@ -119,6 +119,7 @@ class Plugin {
add_filter( 'wp_mail_from_name', array( $this, 'filter_mail_from_name' ) );
add_action( 'phpmailer_init', array( $this, 'configure_reply_to' ), 20 );
add_action( 'init', array( $this, 'load_textdomain' ) );
add_action( 'init', array( $this, 'register_log_post_type' ) );
add_action( 'init', array( $this, 'maybe_schedule_cleanup' ) );
add_action( 'init', array( $this, 'maybe_schedule_stats_cleanup' ) );
@ -139,6 +140,21 @@ class Plugin {
}
}
/**
* Loads the plugin text domain for translations.
*
* @since 2.2.1
*
* @return void
*/
public function load_textdomain(): void {
load_plugin_textdomain(
'robotstxt-smtp',
false,
dirname( ROBOTSTXT_SMTP_BASENAME ) . '/languages'
);
}
/**
* Registers the admin functionality.
*