get_real_file_to_edit

函数
get_real_file_to_edit ( $file )
参数
  • (string) $file Filesystem path relative to the wp-content directory.
    Required:
返回值
  • (string) Full filesystem path to edit.
定义位置
相关方法
get_link_to_editvalidate_file_to_editget_default_page_to_editget_user_to_editget_tags_to_edit
引入
1.5.0
弃用
2.9.0

get_real_file_to_edit函数是一个WordPress的函数,它检索一个可以在WordPress编辑器中编辑的文件的绝对路径: 这个函数把文件路径作为一个参数,并返回可以编辑的文件的真实路径。

获取文件的真实文件系统路径,以便在管理员中编辑。

function get_real_file_to_edit( $file ) {
	_deprecated_function( __FUNCTION__, '2.9.0' );

	return WP_CONTENT_DIR . $file;
}

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-05 19:32:59

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

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

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