Skip to content

スクリプトは必要なページでだけ読み込む #5

Description

@ddryo
  • renderフックでブロックが使われたかをチェックして必要なページにのみjsを読み込む。
  • CSSもshould_load_separate_core_block_assetsを考慮する?

※ ただしクラシックエディターでのサポートを切る必要あり。(the_contentフィルターでクラス名チェックすればいけるけど...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions