' . __('Settings', 'static-html-output-plugin') . ''; array_unshift( $links, $settings_link ); return $links; } function initialise_localisation() { load_plugin_textdomain( 'static-html-output-plugin', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); } add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'pluginActionLinks'); add_action('plugins_loaded', 'initialise_localisation'); add_action( 'wp_ajax_generate_archive', 'generate_archive' ); function generate_archive() { $plugin = StaticHtmlOutput::getInstance(); $plugin->genArch(); wp_die(); }