Timeline for Hook into $wpdb
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 7, 2014 at 15:11 | vote | accept | TheNiceGuy | ||
Jul 7, 2014 at 15:10 | comment | added | Oleg Butuzov | Yes. This filter 'hook' runnig each time you running any query... | |
Jul 7, 2014 at 15:08 | comment | added | TheNiceGuy | Sadly that was not my question. I can excute querys with multiple functions. e.g. with query() and get_results(). Will this filter get called for each of them? | |
Jul 7, 2014 at 6:19 | comment | added | Oleg Butuzov | this is a filter-hook - its only to change almost every sql query. but use can use it to run your sql query. | |
Jul 6, 2014 at 10:22 | comment | added | TheNiceGuy | I mean, do i have to use the query() function, or does this hook will also get called for the get_results() function, for example? | |
Jul 5, 2014 at 20:37 | history | edited | Oleg Butuzov | CC BY-SA 3.0 |
additional code example
|
Jul 5, 2014 at 20:35 | comment | added | Oleg Butuzov | didn't really understand your additional question. With query filter you can hook to any query. Inside callback you can remove you hooked callback and set it after you proccess your code. is that you wanted? | |
Jul 5, 2014 at 19:26 | comment | added | TheNiceGuy | Thanks. I added a additional question to my original one. Please take a look at it. Many thanks! | |
Jul 5, 2014 at 18:17 | review | Low quality posts | |||
Jul 5, 2014 at 18:24 | |||||
Jul 5, 2014 at 17:58 | history | answered | Oleg Butuzov | CC BY-SA 3.0 |