elgg_register_page_handler() vs elgg_register_route()

Dear Elgger,

I found that in version 3.0 :

Page handling using elgg_register_page_handler() has been deprecated.

We have added new routing API using elgg_register_route(), which allows plugins to define named routes, 

If I have code like 

elgg_register_page_handler('blog', 'blog_page_handler');

 

What should I do ? 

Thank you for your help,

Regard,
Reza Ervani

 

 

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking