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編輯器中編輯的檔案的絕對路徑: 這個函式把檔案路徑作為一個引數,並返回可以編輯的檔案的真實路徑。

獲取檔案的真實檔案系統路徑,以便在管理員中編輯。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function get_real_file_to_edit( $file ) {
_deprecated_function( __FUNCTION__, '2.9.0' );
return WP_CONTENT_DIR . $file;
}
function get_real_file_to_edit( $file ) { _deprecated_function( __FUNCTION__, '2.9.0' ); return WP_CONTENT_DIR . $file; }
function get_real_file_to_edit( $file ) {
	_deprecated_function( __FUNCTION__, '2.9.0' );

	return WP_CONTENT_DIR . $file;
}

常見問題

FAQs
檢視更多 >