/** * @return void */ private function get_reset_table_link() { $request = remove_query_arg('msg', wp_unslash($_SERVER['REQUEST_URI'])); $nonce = wp_create_nonce($this->page_data->get_nonce_action()); $url = add_query_arg(array('action' => $this->reset_action, $this->page_data->get_nonce_name() => $nonce, '_wp_http_referer' => esc_attr($request)), $this->page_data->get_form_action()); // there is no general class for delete links. this is not ideal. print "<p><a href='{$url}' class='delete submitdelete' style='color:red'>" . esc_html__('Reset table to default values', 'multilingualpress') . '</a></p>'; }