' . __( 'Settings', 'monero_payment' ) . '', ); return array_merge( $plugin_links, $links ); } add_action( 'admin_menu', 'monero_create_menu' ); function monero_create_menu(){ add_menu_page( __( 'Monero', 'textdomain' ), 'Monero', 'manage_options', 'admin.php?page=wc-settings&tab=checkout§ion=monero_gateway', '', plugins_url( 'monero/assets/icon.png' ), 56 // Position on menu, woocommerce has 55.5, products has 55.6 ); } function set_lang_file() { # set the language file $currentLocale = get_locale(); if(!empty($currentLocale)) { $moFile = dirname(__FILE__) . "/lang/" . $currentLocale . ".mo"; if (@file_exists($moFile) && is_readable($moFile)) { load_textdomain(KRBWC_I18N_DOMAIN, $moFile); } } }