繁体   English   中英

在 php Wordpress 页脚中添加链接

[英]Adding link in php Wordpress footer

我需要一些 php 方面的帮助。 我需要一个关于 inetio sro 短语的超链接

代码如下:

if ( function_exists( 'get_the_privacy_policy_link' ) ) {
    $footer_text = sprintf( _x( 'Copyright &copy; %1$s %2$s. Všechna práva vyhrazena. %3$s', '1: Year, 2: Site Title with home URL, 3: Privacy Policy Link', '' ), esc_attr( date_i18n( __( 'Y', '' ) ) ), '<a href="'. esc_url( home_url( '/' ) ) .'">'. esc_attr( get_bloginfo( 'inetio', 'display' ) ) . '</a>', get_the_privacy_policy_link() ) . ' &#124; ' . esc_html( $theme_data->get( 'inetio s. r. o.') ) . '&nbsp;' . esc_html__( 'vytvořilo inetio s. r. o.', 'solid-construction' ). '&nbsp;<a target="_blank" href="'. esc_url( $theme_data->get( '' ) ) .'">'. esc_html( $theme_data->get( '' ) ) .'</a>';
}

谢谢你的帮助

博萨

为此,您可以在 WordPress 内置挂钩下使用它。

add_action('wp_footer','dev_testing_func');
function dev_testing_func(){
    /*Place your Code here*/
}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM