hangar-wp-plugin/includes/hangar-plugin-init-textdoma...

18 lines
555 B
PHP
Raw Permalink Normal View History

<?php
/**
* Load translation, if it exists
*
* This class defines all code necessary to run during the plugin's activation.
*
2022-07-22 14:17:22 +02:00
* @link https://hangar.org
* @since 1.0.0
* @package hangar-wp-plugin
* @subpackage hangar-wp-plugin/includes
* @author Jorge - vitrubio.net <jorge@vitrubio.net>
*/
2022-07-22 14:17:22 +02:00
function hangar_wpplugin_init_textdomain() {
load_plugin_textdomain( 'hangar-wpplugin-textdomain', null, plugin_dir_path( __FILE__ ).'/assets/languages/' );
}
2022-07-22 14:17:22 +02:00
add_action('plugins_loaded', 'hangar_wpplugin_init_textdomain');