v2.2.1
This commit is contained in:
parent
ed5c696fbe
commit
30d19d38d1
1 changed files with 229 additions and 7437 deletions
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue