Override a partial in a theme

Hello,

I call a partial from my plugin like that :slight_smile:
echo get_view()->partial('add/article.php');

Is there a way to override my “add/article.php” file in a theme ?

It works for view but seems doesn’t work for partials.

Thanks for advance.

Franck.

You can override partials in themes.

One wrinkle is that view files used on your plugin’s own pages are overridden at themes/your-theme/your-plugin/add/article.php, whereas if they’re used on another page, like in a hook fired elsewhere, they’re overridden at themes/your-theme/add/article.php