wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_should_concatenate_admin_scripts › WordPress Filter Hooks
Since7.2.0
Deprecatedn/a
› apply_filters( 'wp_should_concatenate_admin_scripts', $concatenate )
| Parameters: |
|
| Defined at: |
|
| Codex: |
Filters whether scripts and styles are concatenated on admin screens and the login screen.
Setting the `$concatenate_scripts` global directly still takes precedence over this filter on the request where it is set. An admin screen settles the global the first time scripts are registered, when the {@see 'wp_default_scripts'} action registers TinyMCE. That can be as early as while plugins load, before the theme's functions.php, whereas the login screen reads this filter only when it prints, to predict what the admin will do. So add a callback when a plugin loads, rather than from a theme or on a later hook, or the admin may not see it while the login screen does.Related Functions: wp_should_concatenate_admin_scripts, wp_options_connectors_wp_admin_enqueue_scripts, _wp_footer_scripts, wp_localize_script, wp_dashboard_recent_drafts, wp_font_library_wp_admin_enqueue_scripts