I'm trying to learn Wordpress Structure with investigating some free plugins/themes.
I'm working on "Renger Blog Theme" right now, but I couldn't understand something. I've checked get_header() page in the WP manual but it still looks like a magic :)
This theme has custom function codes in
wordpress\wp-content\themes\renderblog\inc\renderoption.php
and this theme calling this file with just
get_header();
in index.php
There is no include code in header.php or wherever else.
How it's calling this specific PHP file with get_header()? Is it like a way to include automatically all files in the inc folder?
When I just delete get_header() from the index.php, the functions are not working.
index.php, Wordpress loadsfunctions.php(of the current theme). So, the logical and the includes are infunctions.php. Some informations here : wordpress.stackexchange.com/questions/71406/… - Vincent Decauxgreping your code base.grep -E 'function\s+get_header\(\)' --include="*.php" -r .from the root of your code base should bring but scripts that define that function. - user3783243