我對PHP幾乎一無所知,我需要幫助。我有一個WordPress插件,我想更改此代碼:更改一行「get_edit_post_link」
{
$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';
}
問題是......我不想編輯該帖子。我只是想被重定向到文章文章。
你可以看到我想要的。
謝謝!
您使用哪個插件?查看插件文檔以查看它是否具有「get_post_link()」函數會很有幫助。 –
這是插件:https://wordpress.org/plugins/report-content/ – Joe