Register a route for the font-library-wp-admin page.
Parameters
$pathstringrequired- Route path (e.g.,
'/types/$type/edit/$id'). $content_modulestring|nulloptional- Script module ID for content (stage/inspector).
Default:
null $route_modulestring|nulloptional- Script module ID for route lifecycle hooks.
Default:
null
Source
function wp_register_font_library_wp_admin_route( $path, $content_module = null, $route_module = null ) {
global $wp_font_library_wp_admin_routes;
$route = array( 'path' => $path );
if ( ! empty( $content_module ) ) {
$route['content_module'] = $content_module;
}
if ( ! empty( $route_module ) ) {
$route['route_module'] = $route_module;
}
$wp_font_library_wp_admin_routes[] = $route;
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.