plugins - How to add links in .po (language) file in wordpress?

I am beginner in wordpress and I want to know how can I add links in .po file.Basically I am using Loco Translate to cha

I am beginner in wordpress and I want to know how can I add links in .po file.

Basically I am using Loco Translate to change language text in plugins and theme.

But I need to add Login page link in that text so user should click on link and

after login success user should same.

I am beginner in wordpress and I want to know how can I add links in .po file.

Basically I am using Loco Translate to change language text in plugins and theme.

But I need to add Login page link in that text so user should click on link and

after login success user should same.

Share Improve this question edited Dec 16, 2016 at 14:53 prosti 4,3234 gold badges26 silver badges45 bronze badges asked Dec 16, 2016 at 10:35 PravinPravin 211 silver badge4 bronze badges 1
  • ok but how can add links in there? – Pravin Commented Dec 16, 2016 at 12:03
Add a comment  | 

1 Answer 1

Reset to default 1

Don't add links, no need for HTML in there:

How about this:

$anchor = esc_html_x( 'Google', 'link text for google', 'txt-domain' );
$domain = esc_url( __( 'google', 'txt-domain' ) );  
$link   = sprintf( '<a href="https://%s">%s</a>', $domain, $anchor );

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744980922a4604434.html

相关推荐

  • plugins - How to add links in .po (language) file in wordpress?

    I am beginner in wordpress and I want to know how can I add links in .po file.Basically I am using Loco Translate to cha

    1天前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信