If I don’t want to use shortcode name then that ok? if ok then which part of code I need to remove ?
I am not a developer, thats why I am asking this type stupid question.
Hello Sir,
Can you confirm me if the code is correct?
add_shortcode( ‘your_shortcode_name’, function() {
if( aicp_can_see_ads() ) { // This part will show ads to your non-banned visitors
$adCode = ‘<div class=”aicp”><!– Don\’t forget to add this div with aicp class –>
My Own Google ads code here
</div><!– end of the aicp div –>’;
return $adCode;
} else { // Anything within this part will be shown to your banned visitors or to the blocked country visitors
return ‘<div class=”error”>You have been blocked from seeing ads.</div>’;
}
} );