So I am trying to find the value stored by a certain variable `$welcome_intro_page_id` which is here:[https://github.com/xVicissitudex/WordPress-Themes/blob/94066711fe6d105f8412613a5c69853eab094595/unblock/inc/template-functions.php#L144])
I am fairly sure this function has to run because `unblock_welcome_intro_content` [https://github.com/xVicissitudex/WordPress-Themes/blob/94066711fe6d105f8412613a5c69853eab094595/unblock/inc/template-functions.php#L176]) is being called by the index [https://github.com/xVicissitudex/WordPress-Themes/blob/94066711fe6d105f8412613a5c69853eab094595/unblock/index.php#L18])
So anyway I typed `echo var_dump(absint(get_theme_mod(‘welcome_intro_page_id’)));` in the index to see the result and it’s 0. But when I type `echo var_dump($welcome_intro_page_id);` in the index I get an error that variable is not defined. Why is that? I am fairly sure the function should be called up to that point.
[ad_2]