wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_register_options_connectors_route › WordPress Function

Dan/a
Deprecaton/a
› wp_register_options_connectors_route ( $path, $content_module = null, $route_module = null )
Parametri: (3)
  • (string) $path Route path (e.g., '/types/$type/edit/$id').
    Richiesto: Sì
  • (string|null) $content_module Script module ID for content (stage/inspector).
    Richiesto: No
    Default: null
  • (string|null) $route_module Script module ID for route lifecycle hooks.
    Richiesto: No
    Default: null
Definito a:
Codex:

Register a route for the options-connectors page.



Sorgenti

function wp_register_options_connectors_route( $path, $content_module = null, $route_module = null ) {
	global $wp_options_connectors_routes;

	$route = array( 'path' => $path );
	if ( ! empty( $content_module ) ) {
		$route['content_module'] = $content_module;
	}
	if ( ! empty( $route_module ) ) {
		$route['route_module'] = $route_module;
	}

	$wp_options_connectors_routes[] = $route;
}