Support » Developing with WordPress » Name of theme.json loader function

  • Hello!!!
    This is a question for the developers of the theme.json feature. I’m a developer who works on my own site theme. I recently refactored my theme into one that uses theme.json. I have succeeded in getting the theme.json to output after my own styles by setting my own style-enqueue function’s priority in the ‘wp_enqueue_scripts’ hook to 1. If the priority were set to 99, then the theme.json output would come first. This behavior actually gives me hope that I can somehow have the theme.json behavior even when my WordPress pages are being loaded in an iframe via the “/embed” magic endpoint.

    I know that my use case is an edge case, and so I’m not asking you to submit a feature request. I’m simply asking you this: What is the name of the function associated with theme.json that is attached to the wp_enqueue_scripts hook? If there is more than one of them, then please give me all of them. Thank you!!!

    Stuart Simon

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.