remove_action conditionally for Custom Post Type – not working

I got it working in the end by using ‘template_redirect’ and changing the remove_action number from 8 to 1 🙂

// Remove 'Genesis Co-Authors Plus' author box and 'filed under' from custom post type
add_action('template_redirect', 'lf_custom_cpt_display');
function lf_custom_cpt_display() {
    if ( is_singular( 'local-bite' ) ): {
        remove_action( 'genesis_after_entry', 'gcap_author_box', 1 );
        remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 );
        remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
        remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 );
    }
    endif;
}

tech