Registering nav menu question
-
Hi!
My name is Peter and I’m taking my first small babysteps in WP development.There’s a lot to be found on many different websites, but there’s one thing I can not get an explanation for. It could be that the question has been asked many times before, or that I’m posting this in the wrong section. Would you be so kind to guide me further to the correct way of using the forums in that case?
While working on customizing existing themes and in the WP documentation, I see a reference to a self-defined name within calls, e.g.:
‘myfirsttheme’ in the array below
register_nav_menus( array(
‘primary’ => __( ‘Primary Menu’, ‘myfirsttheme’ ),
‘secondary’ => __( ‘Secondary Menu’, ‘myfirsttheme’ )
) );or here
load_theme_textdomain( ‘myfirsttheme’, get_template_directory() . ‘/languages’ );
I’ve seen developers that use this and some who don’t, but I can not get a clear understanding of the use of the parameter. Can someone maybe explain how this works?
Thanks and rgds,
Peter
- The topic ‘Registering nav menu question’ is closed to new replies.