Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
I18n
100.00% covered (success)
100.00%
5 / 5
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%
5 / 5
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    bh-wp-autologin-urls
12 */
13
14namespace BrianHenryIE\WP_Autologin_URLs\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     * @hooked plugins_loaded
28     *
29     * @since    1.0.0
30     */
31    public function load_plugin_textdomain(): void {
32
33        load_plugin_textdomain(
34            'bh-wp-autologin-urls',
35            false,
36            plugin_basename( dirname( __DIR__, 2 ) ) . '/languages/'
37        );
38    }
39}