should_load_block_editor_scripts_and_styles

過濾鉤子
apply_filters( 'should_load_block_editor_scripts_and_styles', $is_block_editor_screen )

should_load_block_editor_scripts_and_styles是WordPress中的一個過濾器鉤子,它決定是否應該載入塊編輯器的指令碼和樣式。您可以使用這個過濾器來有條件地阻止區塊編輯器的指令碼和樣式被載入。

過濾決定區塊編輯器指令碼和樣式是否將在當前螢幕上排隊的標誌。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'should_load_block_editor_scripts_and_styles', $is_block_editor_screen );
return apply_filters( 'should_load_block_editor_scripts_and_styles', $is_block_editor_screen );
return apply_filters( 'should_load_block_editor_scripts_and_styles', $is_block_editor_screen );

常見問題

FAQs
檢視更多 >