wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_register_options_connectors_wp_admin_route › WordPress Function

Odn/a
Przestarzałyn/a
› wp_register_options_connectors_wp_admin_route ( $path, $content_module = null, $route_module = null )
Parametry: (3)
  • (string) $path Route path (e.g., '/types/$type/edit/$id').
    Wymagane: Tak
  • (string|null) $content_module Script module ID for content (stage/inspector).
    Wymagane: Nie
    Domyślny: null
  • (string|null) $route_module Script module ID for route lifecycle hooks.
    Wymagane: Nie
    Domyślny: null
Zdefiniowane na:
Codex:

Register a route for the options-connectors-wp-admin page.



Źródło

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