wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



register_font_library_route › WordPress Function

Seitn/v
Veraltetn/v
register_font_library_route ( $path, $content_module = null, $route_module = null )
Parameter: (3)
  • (string) $path Route path (e.g., '/types/$type/edit/$id').
    Erforderlich: Ja
  • (string|null) $content_module Script module ID for content (stage/inspector).
    Erforderlich: Nein
    Standard: null
  • (string|null) $route_module Script module ID for route lifecycle hooks.
    Erforderlich: Nein
    Standard: null
Definiert in:
Codex:

Register a route for the font-library page.



Quellcode

function register_font_library_route( $path, $content_module = null, $route_module = null ) {
		global $wp_font_library_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_routes[] = $route;
	}
}