If you have any question, suggestion or article topic for me to write, feel free to contact me through my shout box. ;) Some time I need an idea to write. hehe Hopefully I can help you and share my expertise.
I'm currently studying wordpress code becoz I need to hack theme preview.I want change CSS style when preview themes function called. Current wordpress method, they'll read style.css by theme name but I don't want to do that since I develop a library for CSS Style. During hacking process, I realize this code
add_filter('stylesheet', create_function('', "return '{$_GET['stylesheet']}';") );
Not
add_filter daaa. can you see
create_function( inside add_filter ?
Then I ask google by using keyword
php create_function and
found this result. wah... so easy to create function on the fly using php.
0 comments:
Post a Comment