';
return $adCode;
} else {
return '
広告の表示がブロックされています。
';
}
}
add_shortcode('ad01', 'ad01Func');
// reCAPTCHAを問い合わせページのみ有効
function load_recaptcha_js() {
if ( !is_page( 'contact-us' ) ) {
wp_deregister_script( 'google-recaptcha' );
}
}
add_action( 'wp_enqueue_scripts', 'load_recaptcha_js', 100 );
?>