how to remove get_template_part from a plugin? [closed]

I have a template file and that file has two get_template_part().

ie,get_template_part( 'store' );

get_template_part( 'header' );

these two are used inside a template page, I wanted here to remove these two get_template_part() from my plugin

ie, if I load a function from my plugin ,get_template_part('store') must not be shown.it should be removed from the template page.

can anyone please suggest some ways to do it.

1 Answer
1

Unfortunately it’s not possible. There just aren’t any filters for filtering templates loaded with get_template_part() that you could use to achieve this.

Leave a Comment