get_block_file_template

過濾鉤子
apply_filters( 'get_block_file_template', null, $id, $template_type )

get_block_file_template: 這個函式檢索用於渲染一個塊型別的檔案模板的路徑: 該函式將塊型別名稱作為一個引數,並返回檔案的路徑。

此篩選器記錄在wpincludes/block-template-utils.php中。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'get_block_file_template', null, $id, $template_type );
return apply_filters( 'get_block_file_template', null, $id, $template_type );
return apply_filters( 'get_block_file_template', null, $id, $template_type );

常見問題

FAQs
檢視更多 >