By adding a filter to the 'post_link'
hook. See the get_permalink()
function for more info.
For custom post types, you can use the 'post_type_link'
hook.
It’s a lot easier if you follow the source code (this is for v3.0):
By adding a filter to the 'post_link'
hook. See the get_permalink()
function for more info.
For custom post types, you can use the 'post_type_link'
hook.
It’s a lot easier if you follow the source code (this is for v3.0):