short answer... no
I don't know of any way of modifying the core classes without hacking the core, or extending the classes with your own. Can you not use a global function for it?
Thanks for the quick reply.
let me know where will I define/create a global function?. (Since I'm new to elgg, sorry, if this is silly)
start.php of your plugin. You can register your functions in a seperate library and can load it as and when needed using elgg_register_lib() and elgg_load_lib(). Take a look at some core plugins.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.