add_action( 'wp_ajax_tool_ping', 'callback_tool_ping_callback' );
add_action( 'wp_ajax_nopriv_tool_ping', 'callback_tool_ping_callback' );

function callback_tool_ping_callback() {
	ob_start();
	 $tool_global = new tool_global; 
	 $seach_tool_ping = isset($_POST['seach_tool_ping']) ? $_POST['seach_tool_ping'] : '';
	 $ip = $tool_global->ping_tool($seach_tool_ping);
	return $ip;
	$content = ob_get_clean();
		echo $content;
		wp_die();
		die();
}