| Code Coverage | ||||||||||
| Lines | Functions and Methods | Classes and Traits | ||||||||
| Total |  | 100.00% | 5 / 5 |  | 100.00% | 1 / 1 | CRAP |  | 100.00% | 1 / 1 | 
| I18n |  | 100.00% | 5 / 5 |  | 100.00% | 1 / 1 | 1 |  | 100.00% | 1 / 1 | 
| load_plugin_textdomain |  | 100.00% | 5 / 5 |  | 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://BrianHenryIE.com | 
| 9 | * @since 1.0.0 | 
| 10 | * | 
| 11 | * @package brianhenryie/bh-wc-checkout-rate-limiter | 
| 12 | */ | 
| 13 | |
| 14 | namespace BrianHenryIE\Checkout_Rate_Limiter\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 | * | 
| 22 | * @since 1.0.0 | 
| 23 | * @package brianhenryie/bh-wc-checkout-rate-limiter | 
| 24 | * | 
| 25 | * @author BrianHenryIE <BrianHenryIE@gmail.com> | 
| 26 | */ | 
| 27 | class I18n { | 
| 28 | |
| 29 | /** | 
| 30 | * Load the plugin text domain for translation. | 
| 31 | * | 
| 32 | * @hooked plugins_loaded | 
| 33 | * | 
| 34 | * @since 1.0.0 | 
| 35 | */ | 
| 36 | public function load_plugin_textdomain(): void { | 
| 37 | |
| 38 | load_plugin_textdomain( | 
| 39 | 'bh-wc-checkout-rate-limiter', | 
| 40 | false, | 
| 41 | dirname( plugin_basename( __FILE__ ), 3 ) . '/languages/' | 
| 42 | ); | 
| 43 | |
| 44 | } | 
| 45 | |
| 46 | } |