Exit wp_head or wp_footer in wordpress Rest API

Is there a way to get what comes with wp_head () or wp_footer () in a rest api call?

I mean scripts and styles that can come from the plugin or from WordPress itself when I use wp_enqueue_script , for example?

The reason is that I want to do everything with the js framework, but I want to keep extensible with plugins (not with all, but if it is for styling, for example, which gives only a special style).

If this is not possible, it would be good to know why ...?

In addition, if there is a way around this, it will also be useful in the future.

+4
source share
1

API, . , , API, .

0

Source: https://habr.com/ru/post/1669861/


All Articles