{"id":8813006,"date":"2017-02-16T15:52:02","date_gmt":"2017-02-16T15:52:02","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wrapper-function-pass-through-params\/"},"modified":"2017-02-16T15:52:02","modified_gmt":"2017-02-16T15:52:02","slug":"wrapper-function-pass-through-params","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wrapper-function-pass-through-params\/","title":{"rendered":"wrapper function pass through params"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I&#8217;ve wrapped my d() calls in a wrapper debug function that, amongst other things, checks to make sure this plugin is installed (and to not throw errors when d() is not available on different staging\/production setups, etc).<\/p>\n<p>The fallout of this is that Kint then lists the parameter names of my wrapper function. for example:<\/p>\n<pre><code>\ndebug($var, $var2){\n  if(function_exists(&#039;d&#039;){\n    d($var, $var2);\n  }\n}\n\n$test = &#039;foo&#039;;\n$test2 = &#039;bar;\nd($test, $test2);\n<\/code><\/pre>\n<p>will create a kint output with $var $var2 as the source vars rather $test and $test2. Is there anyway to pass through the original variable names?<\/p>\n<p>I realize this is more of a question about Kint itself, but thought worth asking here. <\/p>\n<p>thank you,<br \/>\nErik<\/p>\n","protected":false},"template":"","class_list":["post-8813006","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8813006","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8813006\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8813006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}