сверху/снизу!) add_action('wp_footer', function () { if ( is_product() && get_post_field('post_name', get_post()) === 'gift_card' ) { ?> } });