How can I call template partials inside my custom plugin

Đã có trọn bộ đề thi thử THPT Quốc Gia 2022 các môn: vip.dethihsg247.com
QUẢNG CÁO: Đổi thẻ cào thành tiền mặt min rút 10k tại đây

All the examples seem to be for including page and post templates in a custom plugin, but that’s not what I need.

I am trying to include template partials that will wrap and style the output from a function in my custom wordpress plugin. Here is my example:

Instead of returning $tpl_data values wrapped in markup, I want to pass $tpl_data into a template partial that theme builders can override.

I’ve tried to use get_template_part like this:

I have a ‘templates’ directory in the plugin directory with the correctly named partial in it but it doesn’t return anything.

Is this possible to do in a wordpress plugin?

Xin chào các bạn và quý Thầy Cô. Hãy nhập từ khóa mình muốn vào ô tìm kiếm trên Website để tìm kiếm mọi thứ hoặc trên google các bạn hãy nhập từ khóa + dethihsg247.com để tìm kiếm các bài viết của chúng tôi nhé.
  • Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
  • Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
  • Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.

Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com