How to register new page in route
Want a successful Modern site?
Start with IQRA training; it’s easy and quick to your needs.
How to register new page in route.
Global Add Action
-
add_router_page1. add_route_page($data)parametors
- data (array)
data
- slug (required)
-
filepath (required)
Note:
- Always create first page from admin with same slug
- filepath Location : IQRAtheme/view/
function router(){ add_route_page(array('permalink'=>'download','filepath'=>'pages/download')); } add_action('add_router_page' , 'router');