Di recente ho individuato il codice per un wp-lunch.phpfile destinato a un modello WordPress, come sarebbe se seguissi gli standard di codifica WordPress corretti?

<?php if ( current_user_can('has_sandwich') ): ?>
<?php get_sandwich_header(); ?>
<?php while( has_filling() ): the_filling(); ?>
<?php get_sandwich_part( 'thick_layer',
get_filling() ); ?>
<?php endwhile; ?>
<?php get_sandwich_footer(); ?>
<?php endif; ?>
the_filling()essere