[wp-hackers] Filtering post_link
Sofija
sosingus at yahoo.com
Thu Mar 18 13:52:19 UTC 2010
Hi,
I'm writing plugin where I would like to filter permalink and I have found that post_link would be a good start. But, I would like to control when to use that filter and when not.
For example, I do not want this filter applied when editing post or when displaying previous_post_link or next_post_link.
I assume proper thing might be to determine if current page is admin post edit, or if current page is_post(I see that function is depreciated and has no suggestion for other in the docs)...
Any help?
Thanks!
Sofija
More information about the wp-hackers
mailing list