Access the xticks of a Plots.jl plot

Found the solution in Plots.jl xticks color modification - Specific Domains / Visualization - JuliaLang.

There is a function xticks. The final line in the example below returns the xticks of the figure:

using Plots
xs = 1:10
ys = xs .^ 2
plt = plot(xs, ys)
xticks(plt)