_cleanup_image_add_caption

函数
_cleanup_image_add_caption ( $matches )

cleanup_image_add_caption: 这个函数用来为文章中的图片自动添加标题。它接受一个文章内容字符串作为其参数,并返回更新的内容,并在图片上添加标题。

在image_add_caption()中使用的私密preg_replace回调。

function _cleanup_image_add_caption( $matches ) {
	// Remove any line breaks from inside the tags.
	return preg_replace( '/[rnt]+/', ' ', $matches[0] );
}

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-14 14:36:33

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: