Support » Plugin: Comments - wpDiscuz » add filter for post link

  • Resolved wpman

    (@iwpman)


    I try to edit post link in email content ,but I got blank link.How to add a filter for subscribe email ?
    Here is my code:

    function custom_url(  ) {
    	if ( $post->post_type == 'post' ) {
    		$url = "my custom link";
    	}
    	return $url;
    }
    add_filter( 'post_link', 'custom_url', 10, 3 );
    
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘add filter for post link’ is closed to new replies.