wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_register_content_types_route › WordPress Function
Sincen/a
Deprecatedn/a
› wp_register_content_types_route ( $path, $content_module = null, $route_module = null )
| Parameters: (3) |
|
| Defined at: | |
| Codex: |
Register a route for the content-types page.
Source
function wp_register_content_types_route( $path, $content_module = null, $route_module = null ) {
global $wp_content_types_routes;
$route = array( 'path' => $path );
if ( ! empty( $content_module ) ) {
$route['content_module'] = $content_module;
}
if ( ! empty( $route_module ) ) {
$route['route_module'] = $route_module;
}
$wp_content_types_routes[] = $route;
}