Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
I18n
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 load_plugin_textdomain
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2/**
3 * Define the internationalization functionality
4 *
5 * Loads and defines the internationalization files for this plugin
6 * so that it is ready for translation.
7 *
8 * @link       https://BrianHenry.ie
9 * @since      1.0.0
10 *
11 * @package brianhenryie/bh-wp-aws-ses-bounce-handler
12 */
13
14namespace BrianHenryIE\AWS_SES_Bounce_Handler\WP_Includes;
15
16/**
17 * Define the internationalization functionality.
18 *
19 * Loads and defines the internationalization files for this plugin
20 * so that it is ready for translation.
21 */
22class I18n {
23
24    /**
25     * Load the plugin text domain for translation.
26     *
27     * @since    1.0.0
28     */
29    public function load_plugin_textdomain(): void {
30
31        load_plugin_textdomain(
32            'bh-wp-aws-ses-bounce-handler',
33            false,
34            plugin_basename( dirname( __FILE__, 3 ) ) . '/languages/'
35        );
36
37    }
38}