我使用插件“Auto Post With Image Upload”,例如,我加载一个名为“Image\\u name”的图像,然后插件创建一个名为“Image\\u name”的帖子
现在的问题是:如何删除帖子标题中的下划线(\\u1)告诉我“去哪里挖掘”?我知道有这样一个函数“str\\u replace”。在哪里应用?
下面是一段代码:
$postData = array(
\'post_title\' => $attachment->post_title,
\'post_type\' => \'post\',
\'post_content\' => $image_tag,
\'post_category\' => array(\'0\'),
\'post_status\' => \'publish\'
);
另外,我不太懂php