Filter permalink
-
Hello,
I was just wondering if it would be possible to filter the permalink for some pages. I am using the shortcode and I need the permalink to be different than the current page/post. I have noticed a
scriptlesssocialsharing_get_permalinkfilter but I am not sure how to use it.I want to do something like this:
$postID = (is_page(18712)) ? get_query_var( 'pid', 12752 ) : get_the_ID(); $permalink = get_the_permalink( $postID ); $attributes['permalink'] = $permalink; apply_filters('scriptlesssocialsharing_get_permalink', 'sep_filter_sharing_permalink');Could you help me?
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Filter permalink’ is closed to new replies.