I know almost nothing about PHP and I need help. I have a WordPress plugin, and I want to change this code:
{
$post = get_post($item['post_id']);
if (is_a($post, 'WP_Post'))
return '<a href="' . get_edit_post_link($post->ID) . '#wprc-reports">' . $post->post_title . '</a>';
return 'Post Not Found';
}
the problem is...I don't want to edit that post. I just want to be redirected to the post article.
You can see what I want .
Thank you!