Skip to main content
12 events
when toggle format what by license comment
May 20, 2022 at 5:55 comment added bosco The question will likely remain closed for the reason that the problem and solution are not pertinent to WordPress itself (and thus it's broader development community) - but I am glad that you found a solution!
May 20, 2022 at 5:52 comment added bosco I certainly get where you're coming from! But Stack Exchange sites' scopes are much more defined than traditional web communities - per this stack's definition, questions here must detail a problem specifically regarding the WordPress software and/or it's APIs. Questions regarding general PHP syntax and errors are still specific to PHP, even when that code is used within a WordPress site - Stack Overflow is a more appropriate site for such things. In this case you weren't sure of the root cause - no harm no foul :)
May 19, 2022 at 15:25 history closed vancoder
bosco
Antti Koskinen
Not suitable for this site
S May 19, 2022 at 12:35 vote accept Morty_Smith
S May 19, 2022 at 12:35 vote accept Morty_Smith
S May 19, 2022 at 12:35
May 19, 2022 at 12:34 vote accept Morty_Smith
S May 19, 2022 at 12:35
May 19, 2022 at 12:33 comment added Morty_Smith Hey @bosco, thanks for the answer and you are right in a way. However this question contains some Wordpress terms like $wpdb or get_var function so I can not ask this questions on php forum or API forum. I hope you understand.
May 18, 2022 at 23:20 comment added bosco All variables in PHP begin with a $, and string values need to be encapsulated in quotation marks. Since the BTC in get_coin_price(BTC) has neither of these attributes, PHP believes it to be a constant. As this question is regarding PHP syntax rather than WordPress or it's APIs, it may be considered off-topic for our stack
May 18, 2022 at 17:03 review Close votes
May 19, 2022 at 15:25
May 18, 2022 at 15:21 answer added safir timeline score: 1
May 18, 2022 at 12:16 answer added Vladimir Cvetkoski timeline score: 1
May 18, 2022 at 12:07 history asked Morty_Smith CC BY-SA 4.0