Templately 3.9.1 has 31 actions and 78 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Templately fires an action
add_action( 'templately_builder_footer_before', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Templately is about to use
add_filter( 'the_content', function( $the_content ) {
// Change $the_content here.
return $the_content;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Header Template Actions For Templately */ do_action( 'templately_builder_header_before' ); -
the_content
filter/** * This filter is documented in wp-includes/post-template.php */ apply_filters( 'the_content', get_the_content() ); -
wp_body_open
action/** * WP Defaults */ do_action( 'wp_body_open' ); -
https_ssl_verify
filter/** * This filter is documented in wp-includes/class-wp-http.php */ apply_filters( 'https_ssl_verify', true, '' ); -
import_term_meta
action/** * Fires after term meta is imported. */ do_action( 'import_term_meta', $term_id, $key, $value ); -
import_term_meta_key
filter/** * Filters the meta key for an imported piece of term meta. */ apply_filters( 'import_term_meta_key', $meta['key'], $term_id, $term ); -
/** * Short-circuit the download+sideload step. Returning an attachment id (or * null) skips the built-in implementation. */ apply_filters( 'templately_block_patterns_sideload', null, $source_url, $post_id ); -
/** * Filter whether the post-import block rebuild runs. */ apply_filters( 'templately_block_rebuild_enabled', $enabled ); -
templately_blocks_imported
action/** * Block markup has just been written to a post that nobody has opened in an * editor. */ do_action( 'templately_blocks_imported', [ (int) $inserted_ID ], 'single' ); -
/** * Post types never offered as theme-builder display-condition targets. */ apply_filters( 'templately_builder_excluded_post_types', self::EXCLUDED_POST_TYPES ); -
/** * Filter the Theme Builder authorization answer. */ apply_filters( 'templately_can_manage_builder', $can, $user_id ); -
templately_capability_{$key}
filter/** * The final word on one capability — kill switch and test hook. */ apply_filters( "templately_capability_{$key}", $value, isset( $this->declarations[ $key ] ) ? $this->declarations[ $key ] : [] ); -
templately_cleanup_base_dir
filter/** * Redirect the root every cleanup task resolves against. */ apply_filters( 'templately_cleanup_base_dir', $dir ); -
templately_cleanup_disabled
filter/** * Disable all cleanup. */ apply_filters( 'templately_cleanup_disabled', $settings['disabled'] ); -
/** * Override the retention window for one task. */ apply_filters( 'templately_cleanup_retention_days', $this->age_days, $task_id ); -
/** * Override the storage ceiling for one task. */ apply_filters( 'templately_cleanup_size_ceiling', $this->ceiling_bytes, $task_id ); -
/** * Filters whether a module held back from the release may boot. */ apply_filters( 'templately_deferred_module_enabled', $enabled, $name ); -
templately_dev_api_base_url
filter/** * Filter the base URL for development API */ apply_filters( 'templately_dev_api_base_url', $base_url ); -
/** * Filter the API endpoint URL */ apply_filters( 'templately_dev_api_endpoint_url', $this->url ); -
templately_http_retry_delay
filter/** * Backoff before the next outbound retry, in milliseconds. */ apply_filters( 'templately_http_retry_delay', $jittered, $attempt ); -
templately_init
action/** * Initialize. */ do_action( 'templately_init' ); -
templately_log
action/** * Fan-out: every subscribed module receives every entry (http-inspector * capture, dev console, telemetry…). Listeners are independent sinks — * this is how MULTIPLE loggers coexist without replacing each other. */ do_action( 'templately_log', $formatted_message, $log, $context, $level ); -
templately_log_sink
filter/** * The DEFAULT sink, replaceable/decoratable: a filter receives the current * sink callable and may return a wrapper around it (decorator — filter * priority defines wrap order) or a substitute. Core's default is the * dedicated uploads log file (error_log fallback inside). Note: entries logged * before a module boots (e.g. Modules_Manager discovery notices) necessarily * use the core default. */ apply_filters( 'templately_log_sink', [Log\LogFile::class, 'write'] ); -
/** * Resolve the real client address behind a trusted proxy. */ apply_filters( 'templately_mcp_client_address', $address ); -
templately_module_booted
action/** * Fires once for each module that successfully boots, in dependency order. */ do_action( 'templately_module_booted', $name, $instance ); -
/** * Filters a module's declared requirements just before they are checked. */ apply_filters( "templately_module_requirements_{$name}", $requirements, $probe ); -
templately_modules_booted
action/** * Fires once after the whole module boot loop completes — even when zero * modules were discovered. Consumers can enumerate the active registry / * unavailable map. */ do_action( 'templately_modules_booted', $this ); -
/** * Filters the pack id recorded against content this run creates. */ apply_filters( 'templately_provenance_pack_id', '', $session_id ); -
/** * Filters the human-readable name for a pack id. */ apply_filters( 'templately_provenance_pack_name', '', $pack_id ); -
templately_provenance_source
filter/** * Filters whether this run's content is generated or curated. */ apply_filters( 'templately_provenance_source', self::SOURCE_CLOUD, $session_id ); -
/** * Whether the envelope applies to this route. */ apply_filters( 'templately_rest_envelope_owns_route', $owned, $route, $request ); -
/** * Filter the uploads-scanner per-pass time budget (seconds). */ apply_filters( 'templately_uploads_scanner_budget', self::DEFAULT_BUDGET ); -
user_has_cap
filter/** * See WP_User::has_cap() for description. */ apply_filters( 'user_has_cap', $user->allcaps, $caps, $args, $user ); -
wp_import_term_meta
filter/** * Filters the metadata attached to an imported term. */ apply_filters( 'wp_import_term_meta', $term['termmeta'], $term_id, $term ); -
do_action( 'templately_import.process_post', $post_data, $result, $this ); -
apply_filters( 'templately_ai_editor_log_payload', true ); -
apply_filters( 'templately_block_patterns_ceiling', self::DEFAULT_CEILING ); -
templately_builder_header
actiondo_action( 'templately_builder_header' ); -
do_action( 'templately_builder_header_after' ); -
apply_filters( 'templately_fsi_merge_settings', $content, $settings ); -
templately_import_start
actiondo_action( 'templately_import_start', $this ); -
do_action( 'templately_import.finalize_gutenberg_attachment', $post_id ); -
apply_filters( 'templately_multisite_is_global', false ); -
templately_printed_location
actiondo_action( 'templately_printed_location', $template_id, $location, $template ); -
import_allow_create_users
filterapply_filters( 'import_allow_create_users', self::DEFAULT_ALLOW_CREATE_USERS ); -
import_attachment_size_limit
filterapply_filters( 'import_attachment_size_limit', self::DEFAULT_IMPORT_ATTACHMENT_SIZE_LIMIT ); -
import_end
actiondo_action( 'import_end' ); -
import_post_meta
actiondo_action( 'import_post_meta', $post_id, $key, $value ); -
import_post_meta_key
filterapply_filters( 'import_post_meta_key', $meta['key'], $post_id, $post ); -
import_start
actiondo_action( 'import_start' ); -
apply_filters( 'templately_admin_enqueue_allowed_hooks', [ 'index.php', 'edit.php', 'toplevel_page_templately', 'elementor', 'gutenberg', 'templately_page_templately_settings' ], $hook ); -
apply_filters( 'templately_admin_localized_data', $templately ); -
templately_admin_scripts
actiondo_action( 'templately_admin_scripts', $hook ); -
templately_ai_editor_mock
filterapply_filters( 'templately_ai_editor_mock', $dev_mode ); -
apply_filters( 'templately_api_request_params', $args, $method, $api_url ); -
apply_filters( 'templately_block_patterns_category_aliases', [ 'features-services' => 'services', 'herobanner' => 'banner', 'hero' => 'banner', 'banners' => 'banner', 'blog' => 'posts', 'archive' => 'query', 'team-member' => 'team', 'cta' => 'call-to-action', 'headers' => 'header', 'footers' => 'footer', 'testimonial' => 'testimonials', 'service' => 'services', 'galleries' => 'gallery', 'info' => null, 'product' => null, 'faq' => null, 'subscription' => ... ); -
apply_filters( 'templately_block_patterns_content_budget', self::CONTENT_BUDGET_BYTES ); -
apply_filters( 'templately_block_patterns_content_dir', $uploads['basedir'] . '/templately/patterns' ); -
apply_filters( 'templately_block_patterns_lazy', true ); -
apply_filters( 'templately_block_patterns_media_budget', self::DEFAULT_BUDGET ); -
apply_filters( 'templately_block_patterns_media_hosts', [ 'templately.com', 'templately.dev', ] ); -
apply_filters( 'templately_block_patterns_per_type', self::DEFAULT_PER_TYPE ); -
apply_filters( 'templately_block_patterns_sync_budget', self::SYNC_BUDGET ); -
apply_filters( 'templately_block_patterns_wp_version', $wp_version ); -
apply_filters( 'templately_callback_signature_enforce', false ); -
apply_filters( 'templately_cloud_push_post_type', get_post_type() ); -
templately_condition_manager
filterapply_filters( 'templately_condition_manager', null, $this ); -
templately_default_caps
filterapply_filters( 'templately_default_caps', $default_capabilities ); -
templately_fsi_ajax_handlers
filterapply_filters( 'templately_fsi_ajax_handlers', [] ); -
templately_fsi_before_import
actiondo_action( 'templately_fsi_before_import', $this, $this->request_params ); -
do_action( 'templately_fsi_import_complete', $normalized_data ); -
templately_fsi_item_meta
filterapply_filters( 'templately_fsi_item_meta', [ self::META_SESSION_KEY => $this->session_id ], $entity, $this->session_id ); -
templately_fsi_json_helper
filterapply_filters( 'templately_fsi_json_helper', null, $platform ); -
apply_filters( 'templately_fsi_prefetch_concurrency', self::DEFAULT_CONCURRENCY ); -
apply_filters( 'templately_fsi_prefetch_enabled', true ); -
apply_filters( 'templately_fsi_prefetch_timeout', self::DEFAULT_TIMEOUT ); -
apply_filters( 'templately_fsi_request_time_budget', 25 ); -
templately_has_revert
filterapply_filters( 'templately_has_revert', false ); -
apply_filters( 'templately_import_copy_attachment', null, $original_post_id, $dest_file, $upload_dir ); -
apply_filters( 'templately_import_has_local_attachment', false, $post['post_id'] ?? null, $file_name ); -
templately_import_runners
filterapply_filters( 'templately_import_runners', $this->runners, $this->request_params ); -
do_action( 'templately_import.process_term', $term, $result, $this ); -
templately_locations
actiondo_action( 'templately_locations', $this ); -
templately_log_override
filterapply_filters( 'templately_log_override', null, $log, $context, $level ); -
apply_filters( 'templately_mcp_fsi_loopback_url', $default_url ); -
apply_filters( 'templately_mcp_lockout_seconds', max( 1, $seconds ) ); -
apply_filters( 'templately_mcp_max_auth_fails', max( 1, $max ), $bucket ); -
apply_filters( 'templately_mcp_serve_wellknown', true, $which ); -
templately_request_source
filterapply_filters( 'templately_request_source', $source ); -
apply_filters( 'templately_requested_platform', $platform ); -
templately_tailwind_hooks
filterapply_filters( 'templately_tailwind_hooks', [ 'toplevel_page_templately', 'elementor', 'gutenberg', 'templately_page_templately_settings', 'edit.php' ] ); -
templately_template_content
filterapply_filters( 'templately_template_content', $content, $this->get_main_id() ); -
wp_import_insert_comment
actiondo_action( 'wp_import_insert_comment', $inserted_comments[ $key ], $comment, $comment_post_id, $post ); -
wp_import_insert_post
actiondo_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post ); -
wp_import_insert_term
actiondo_action( 'wp_import_insert_term', $t, $term, $post_id, $post ); -
wp_import_insert_term_failed
actiondo_action( 'wp_import_insert_term_failed', $t, $term, $post_id, $post ); -
wp_import_post_comments
filterapply_filters( 'wp_import_post_comments', $post['comments'], $post_id, $post ); -
apply_filters( 'wp_import_post_data_processed', $postdata, $post ); -
wp_import_post_data_raw
filterapply_filters( 'wp_import_post_data_raw', $post, $this ); -
wp_import_post_exists
actiondo_action( 'wp_import_post_exists', $post ); -
wp_import_post_meta
filterapply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ); -
wp_import_post_terms
filterapply_filters( 'wp_import_post_terms', $post['terms'], $post_id, $post ); -
wp_import_posts
filterapply_filters( 'wp_import_posts', $this->posts ); -
wp_import_set_post_terms
actiondo_action( 'wp_import_set_post_terms', $tt_ids, $ids, $tax, $post_id, $post ); -
wp_import_terms
filterapply_filters( 'wp_import_terms', $this->terms ); -
wpml_object_id
filterapply_filters( 'wpml_object_id', $template_id );
Generated from Templately's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: