簡體   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