wpseek.com
A WordPress-centric search engine for devs and theme authors



register_navigation_areas › WordPress Function

Since5.9.0
Deprecatedn/a
register_navigation_areas ( $new_areas )
Parameters:
  • (array) $new_areas Supported navigation areas.
    Required: Yes
Defined at:
Codex:

Registers the navigation areas supported by the current theme. The expected shape of the argument is: array( 'primary' => 'Primary', 'secondary' => 'Secondary', 'tertiary' => 'Tertiary', )



Source

function register_navigation_areas( $new_areas ) {
	global $navigation_areas;
	$navigation_areas = $new_areas;
}