You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
The method 'get_style_depends' is final methor dislike the method 'get_script_depends' that isn't final method and help to add depends foreach widget.
why is that? Why you do doesn't let to add custom styles for widgets only if they arer calling?
Thanks
The text was updated successfully, but these errors were encountered:
I have the same question... I don't understand why for scripts we can override get_script_depends but not for styles (get_style_depends). These methods are exactly the same: they work on two arrays depended_styles and depended_scripts. These arrays are used by two twin functions get_style_depends and get_script_depends which are in turn used by two twin functions enqueue_styles and enqueue_scripts.
Btw, it would be cool to have 2 functions add_style_depends_frontend and add_style_depends_editor or, even better, a parameter (editor, frontend, both) for the actual functions to let the system know when the script/style has to be included. Because today, I didn't find a clean way to separate the scripts for the frontend and the editor. Maybe, I missed something?
Hi,
The method 'get_style_depends' is final methor dislike the method 'get_script_depends' that isn't final method and help to add depends foreach widget.
why is that? Why you do doesn't let to add custom styles for widgets only if they arer calling?
Thanks
The text was updated successfully, but these errors were encountered: