Timeline for How to pass a variable for key/value pairs in an argument?
Current License: CC BY-SA 3.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 3, 2016 at 17:48 | vote | accept | Rokit | ||
Jan 1, 2016 at 19:46 | answer | added | Rokit | timeline score: 0 | |
Jan 1, 2016 at 19:17 | history | edited | Pieter Goosen | CC BY-SA 3.0 |
edited title
|
Jan 1, 2016 at 17:13 | comment | added | Rokit | I uploaded the file to my google drive if you want to take a look. I'm not aware of any other problems. | |
Jan 1, 2016 at 17:11 | history | edited | Rokit | CC BY-SA 3.0 |
added 142 characters in body
|
Jan 1, 2016 at 16:57 | comment | added | WPTC-Troop |
$args = array('default' => '#181818', 'transport' => 'refresh'); this should work. What you have shown, is that the full code. Because there might be some $args which might be empty. That might cause the problem. Please check full code carefully.
|
|
Jan 1, 2016 at 16:25 | comment | added | Rokit | @WPTC-Troop I'm not so sure it's not WordPress specific. I use the same method of passing arguments on other pages. The only difference is this bit of code resides in Functions.php. Also, argument passing is only one issue. The other issue is my initial question, which does not work either. The argument passing issue is something I found later. | |
Jan 1, 2016 at 16:23 | comment | added | WPTC-Troop | @Rokit What you are looking for is not wordpress specific. These are ways to pass arguments in php function. You can prefer your own preference | |
Jan 1, 2016 at 16:12 | comment | added | jgraup | It looks basically the same. There is absolutely no good reason I can think of why this would be an issue. Sorry | |
Jan 1, 2016 at 16:08 | comment | added | Rokit | Yeah, I think there might be something funny going on, although I don't know what. I elaborated a bit more. | |
Jan 1, 2016 at 16:06 | history | edited | Rokit | CC BY-SA 3.0 |
added 525 characters in body
|
Jan 1, 2016 at 16:02 | comment | added | WPTC-Troop | your above array argument should work. What do you need? can you explain a bit | |
Jan 1, 2016 at 15:41 | answer | added | jgraup | timeline score: 0 | |
Jan 1, 2016 at 14:01 | review | First posts | |||
Jan 1, 2016 at 15:04 | |||||
Jan 1, 2016 at 13:46 | history | asked | Rokit | CC BY-SA 3.0 |