I developed a baby theme for Genesis that provides Bootstrap on prime of it.
Within the core of this youngster theme I edited the best way the class is displayed within the put up, placing it above the title.
Now, I would prefer to take away the motion once more however it appears not working.
That is principle, under I write one thing extra, with code.
PRACTICALLY
I’ve the file src/lib/put up.php that provides the motion shq_genestrap_post_meta_categories:
perform shq_genestrap_post_meta_categories() {
    $filtered = apply_filters( 'shq_genestrap_post_meta_categories', '[post_categories]' );
    if ( false == trim( $filtered ) ) {
        return;
    }
    // Take away the label and commas
    $filtered = str_replace([__( 'Filed Under: ', 'genesis' ), ', '], '', $filtered);
    genesis_markup( [
        'open'    => '<p %s>',
        'close'   => '</p>',
        'content' => genesis_strip_p_tags( $filtered ),
        'context' => 'entry-meta-categories',
    ] );
}
add_filter( 'shq_genestrap_post_meta_categories', 'do_shortcode', 20 );
add_action( 'genesis_entry_header', 'shq_genestrap_post_meta_categories', 9 );
remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
As you’ll be able to see, I add my customized perform genesis_post_meta after which I take away the Genesis motion genesis_post_meta.
Now, from the file src/features.php I would prefer to take away the motion shq_genestrap_post_meta_categories I added earlier than:
remove_action( 'genesis_entry_header', 'shq_genestrap_post_meta_categories', 9 );
However this does not work.
WHY AM I DOING THIS
The ultimate objective is to offer a Bootstrap on prime Genesis, so, the recordsdata in src/lib shouldn’t be modified: this fashion, after I replace the principle repository, it’s doable to replace the kid theme.
To additional customise the kid theme, as an alternative, I wish to use the file src/features.php that’s by no means up to date on the repository.
Doing this, if sometime I replace the file src/lib/put up.php it’s ample to repeat the recordsdata from the principle repository into the custom-made model of the theme and all the opposite customizations executed by way of the src/features.php file will proceed to work.
However, as informed, I am not in a position to take away actions set by the recordsdata in src/lib.
CONCLUSIONS AND QUESTION (AGAIN)
I add the motion shq_genestrap_post_meta_categories in src/lib/put up.php.
Then I would prefer to take away the motion shq_genestrap_post_meta_categories from the file src/features.php however this does not work:
// src/perform.php
remove_action( 'genesis_entry_header', 'shq_genestrap_post_meta_categories', 9 );
How can I take away the motion added in src/lib/put up.php from the file src/features.php?

