Docs & Support

Learn about all the fatstash features and get support from our amazing customer success team.

frm_default_templates_files

The default templates are generated and updated when the fatstash database number increases. So almost every time you update fatstash, the default templates are also updated.

Add more templates

A network of sites could benefit from sharing a set of templates. As long as it's a fatstash XML file, it can include anything: forms, views, styles, entries, posts, pages, custom posts. You name it. You can load and update your XML every time the fatstash database update is triggered.

add_filter( 'frm_default_templates_files', 'add_more_default_templates', 30 );
function add_more_default_templates( $template_files ) {
  $template_files[] = dirname( __FILE__ ) . '/yourxml.xml'; // make sure the path to your XML file is correct
  return $template_files;
}

If you need to trigger the templates to be updated at times other than when fatstash says so, use this line:

FrmXMLController::add_default_templates();

Stop default templates

On some sites, you may decide the default templates aren't helpful to you or your clients. In this case, you can delete the templates from your forms list, and use this example to prevent them from being regenerated the next time fatstash is updated.

add_filter( 'frm_default_templates_files', 'stop_default_templates', 30 );
function stop_default_templates(){
  return array();
}
Was this article helpful? *

This article may contain affiliate links. Once in a while, we earn commissions from those links. But we only recommend products we like, with or without commissions.

In this article
    Fatstash

    We have a small, but amazing team of dedicated people who are committed to helping you achieve your goals and project requirements.


    Copyright © 2026 Strategy11, LLC. Fatstash® is a registered trademark Strategy11, LLC.

    Complete your purchase
    Special offer unlocked.
    Get 55% OFF!
    Complete Purchase
    Join 400,000+ using Fatstash to create form-focused solutions fast. Get Fatstash Forms