Where is the Javascript attribute window._wpCustomHeaderSettings defined?
I'm trying to modify the behaviour of the Javascript function defined in wp-includes/js/wp-custom-header.js, to change the minimum windows height to display a video header.
For this, I need to modify the attribute window._wpCustomHeaderSettings.minHeight
At the time that my script runs, window._wpCustomHeaderSettings
is not defined yet, so I create it with a window._wpCustomHeaderSettings = window._wpCustomHeaderSettings || {}
, then set the attribute minHeight
to a value of 0.
However, after the page is loaded, if I use the browser console to display this attribute, I see that it has the default value of 500.
So I tried to see where this value was defined to understand what I was doing wrong, but I couldn't, despite all my grep
s through Wordpress source code.
Topic video-header custom-header Wordpress javascript
Category Web