p2p_candidate_title returns nothing?
-
Hello,
I have been trying to display additional meta data next to the candidate connection title.
Here’s my code (I have a meta field with a meta key of “OriginalID” in my post_meta table):
function append_info_to_candidate_title( $title, $ctype, $post ) { if ( 'tweets_to_posts' == $ctype->name && 'tweet' == $post->post_type ) { $title .= " (" . $post->OriginalID . ")"; } return $title; } add_filter( 'p2p_candidate_title', 'append_info_to_candidate_title', 10, 3 );Even if I ask the function just to add a static text string to the candidate title, I get nothing.
Any pointers are very much appreciated, thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘p2p_candidate_title returns nothing?’ is closed to new replies.