Double Underscore in PHP?

后端 未结 5 2021
悲&欢浪女
悲&欢浪女 2020-11-30 09:17

What does the double underscores in these lines of PHP code mean?

$WPLD_Trans[\'Yes\']=__(\'Yes\',$WPLD_Domain);
$WPLD_Trans[\'No\']=__(\'No\',$WPLD_Domain);         


        
5条回答
  •  感情败类
    2020-11-30 10:03

    WordPress documents it's __() function, part of the localisation technology here: https://make.wordpress.org/polyglots/handbook/translating/working-with-core/#localization-technology

    It is difficult to find documentation because __(), __('') or __("") is not very searchable, double underscore and parentheses (round brackets) are keywords to use.

提交回复
热议问题