
如何增加本地Web服务器MAMP的上传大小
wp_delete_file ( $file )
wp_delete_file:此函数从WordPress文件系统中删除文件。它将文件路径作为参数,并从服务器中删除文件。
删除一个文件。
function wp_delete_file( $file ) { /** * Filters the path of the file to delete. * * @since 2.1.0 * * @param string $file Path to the file to delete. */ $delete = apply_filters( 'wp_delete_file', $file ); if ( ! empty( $delete ) ) { @unlink( $delete ); } }