Using WordPress ‘get_sample_permalink’ PHP filter
The `get_sample_permalink` WordPress PHP filter modifies the sample permalink of a post by allowing users to add their own custom function to replace or manipulate the default permalink structure