Timeline for Rewriting a core function?
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 19, 2013 at 7:19 | answer | added | Mark Kaplun | timeline score: 3 | |
Jul 19, 2013 at 6:34 | comment | added | RRikesh |
I have no idea what you're trying to do. if you're calling the function yourself, you can call the new function. Else you can write a function to filter the output using the admin_post_thumbnail_html filter.
|
|
Jul 19, 2013 at 5:37 | comment | added | andy | And how would I go about using the new function instead of _wp_post_thumbnail_html? Sorry if that's a silly question. | |
Jul 19, 2013 at 5:26 | history | tweeted | twitter.com/#!/StackWordPress/status/358095530125033473 | ||
Jul 19, 2013 at 5:26 | comment | added | RRikesh |
It will not override, it will just be a "new" function that you can use instead of _wp_post_thumbnail_html .
|
|
Jul 19, 2013 at 5:23 | comment | added | andy | I done that, when I rename it and put it in functions.php it doesn't override the core function. | |
Jul 19, 2013 at 5:22 | comment | added | RRikesh |
The easiest hack would be to copy that function in your functions.php , rename it, modify as needed, and then use it instead.
|
|
Jul 19, 2013 at 4:25 | answer | added | Pat J | timeline score: 2 | |
Jul 19, 2013 at 4:18 | history | asked | andy | CC BY-SA 3.0 |