Need help with debugging variable in my theme

[ad_1]

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]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer