' . __('Settings', 'static-html-output-plugin') . ''; array_unshift( $links, $settings_link ); return $links; } /** * Initializes localization * @return void */ function myplugin_init() { load_plugin_textdomain( 'static-html-output-plugin', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); } add_action('plugins_loaded', 'myplugin_init'); add_action( 'wp_ajax_generate_archive', 'generate_archive' ); function generate_archive() { $plugin = StaticHtmlOutput::getInstance(); $plugin->genArch(); wp_die(); }