Plugin code

This commit is contained in:
janine 2024-03-01 19:04:22 +05:30
parent 8819c70d0e
commit 2fde6edfdc
28 changed files with 6338 additions and 0 deletions

View file

@ -0,0 +1,37 @@
<?php
/**
* Define the internationalization functionality.
*
* Loads and defines the internationalization files for WDL
* so that it is ready for translation.
*
* @link https://chykalophia.com/woocommerce-direct-links
* @since 0.1.0
* @package Woocommerce_Direct_Links
* @subpackage Woocommerce_Direct_Links/includes
* @author Joel Sanguenza <joel@chykalophia.com>,
* Lord Francis Navarro <francis@chykalophia.com>
*/
if ( ! class_exists( 'Cklph_Wdl_i18n' ) ) {
/**
* Internationalization class
*/
class Cklph_Wdl_I18n {
/**
* Load wdl text domain for translation.
*
* @since 0.1.0
*/
public function load_plugin_textdomain() {
load_plugin_textdomain(
'plugin-name',
false,
dirname( dirname( CKLPH_WDL_BASE ) ) . '/languages/'
);
}
}
}