Update Template Builder Ability: Edit a Theme Builder Template in WordPress

Key Takeaways

  • Update an existing Nexter theme builder template using the nexter/update-template-builder ability by providing the template ID and desired fields.
  • Utilize the required id parameter, which must be an integer, while optional parameters include title, display_rules, and sticky_header for specific template types.
  • Access template IDs with the nexter/list-templates-builder tool before executing the update to ensure correct modifications.
Table of Contents

The nexter/update-template-builder ability updates an existing Nexter theme builder template by its ID. Pass the template ID and any fields you want to change. Only the fields you provide are saved. Type-specific fields such as sticky_header only apply to their relevant template types.

Key Takeaways

The id parameter is required and must be an integer. All other parameters are optional.

Only the fields you pass are updated. Omitted fields keep their existing values.

sticky_header and transparent_header only apply to header-type templates.

hook_action and hook_priority only apply to hooks-type templates.

Use nexter/list-templates-builder to find the template ID before calling this ability.

Required Setup

This ability ships with Nexter Extension (Free). If you do not have it installed, follow the guide on how to install and activate Nexter Extension first.

Parameters

**id** (integer, required) is the WordPress post ID of the template to update.

**title** (string, optional) updates the template’s display name.

**display_rules** (array, optional) sets the conditions under which the template is shown.

**exclude_rules** (array, optional) sets the conditions under which the template is hidden.

**sticky_header** (object, optional) configures sticky behavior. Header templates only.

**transparent_header** (object, optional) configures transparent header settings. Header templates only.

**footer_style** (string, optional) sets the footer layout style. Footer templates only.

**hook_action** (string, optional) sets the WordPress action hook. Hooks templates only.

**hook_priority** (integer, optional) sets the action hook priority. Hooks templates only.

**disable_header_404** and **disable_footer_404** (booleans, optional) hide the header or footer on 404 pages. Page-404 templates only.

What It Returns

The ability returns success (boolean) and the full updated template object with all current field values.

When to Use This Ability

Update display rules on a header template to target a new post type or page condition.

Enable sticky header behavior on an existing header template without recreating it.

Change the hook action on a hooks template to fire at a different WordPress hook point.

Related Documentation

Get Template Builder Ability: nexter/get-template-builder

Create Theme Builder Template Ability: nexter/create-template-builder

Toggle Template Builder Ability: nexter/toggle-template-builder

About the Author

sandip patel

WordPress Developer at POSIMYTH Innovations I am a passionate WordPress Developer at POSIMYTH Innovations, where I focus on building high-performance products and cutting-edge web experiences. Currently, I contribute to the development of major projects including The Plus Addons for Elementor, Sticky Header for Elementor, RankReady AI (LLM & SEO), and the SproutOS MCP server integration. I love bridging the gap between WordPress core functionality and modern AI capabilities. Beyond standard development.

Share your Thoughts

Get Instant Answers to all your questions about Nexter Blocks,
Extensions & Theme trained on 1000+ Docs and Videos

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!