Can the __() thing be omited?
-
Hello,
I know my share of html and css but I’m a newbie to php (and quite confused).
While reading the codex about registering sidebars I saw'name' => __( 'Sidebar name', 'theme_text_domain' ), 'id' => 'unique-sidebar-id', 'description' => '',
later I saw
'name' => __( 'Main Sidebar', 'theme-slug' ), 'id' => 'sidebar-1', 'description' => __( 'Widgets in this area will be shown on all posts and pages.', 'theme-slug' ),
Note that in the second example there is __( in the description.
I searched what the __() is about and found out it is for translation (?).
Now my question is: Since I’m a total newbie and don’t need any translation, could I make my life just a bit easier and omit the __() from the name and description?
And btw is always the __() used for translations? Could I omit it wherever I find it or will it break my code?
Thanks in advance
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Can the __() thing be omited?’ is closed to new replies.