Hooks

Every filter and action of the theme, Leitvia Studio and Leitvia Pro, 108 in all, with what it passes and the file it lives in. Generated from the code.

For developers · Checked with Leitvia 1.2.69, Leitvia Studio 1.3.66 and Leitvia Pro 0.8.56

Hook names never change within a major version. A hook marked as an action runs at a point in time; a filter passes a value through and expects it back. Description and parameters come from the docblock at the hook; for a filter the first parameter is the value it returns.

Leitvia (theme): 12

HookKindWhat it doesParametersFile
leitvia_consent_linkFilterFilters the attributes of the Cookie settings link in the footer: array( ‘href’ => …, ‘aria-haspopup’ => ‘dialog’ ). An empty array or no href leaves the link out.$attributes array<string, string> Attributes of the link.functions.php
leitvia_copyrightFilterFilters the start year and the holder of the copyright line in the footer.$copyright array{since: string, holder: string} since as YYYY or ”, holder as plain text or ”.functions.php
leitvia_editorial_urlFilterFilters the URL of a page on how the site works (editorial standards, corrections, sources); the author box then links to it. Without a plugin that names one the link is left out.$url string URL of the page, ” for none.patterns/hidden-page-post-author.php
leitvia_featured_image_placeFilterFilters where the featured image of one post stands on its page: top, after_first or hidden.$place string Place from post_details().
$post_id int Post ID.
inc/post-details.php
leitvia_footer_endActionFires at the end of every footer template part, inside the contentinfo landmark, so plugins can add legal notes there. Echo the markup.functions.php
leitvia_post_asideFilterFilters the block markup plugins add at the top of the post sidebar, such as a table of contents.$html string Block markup, ” by default.patterns/hidden-page-post-aside.php
leitvia_post_aside_endFilterFilters the block markup plugins add at the end of the post sidebar, such as the service the post is about.$html string Block markup, ” by default.patterns/hidden-page-post-aside.php
leitvia_post_detailsFilterFilters the texts and choices of the single post, see post_details().$details array<string, string> Values by key.inc/post-details.php
leitvia_post_endFilterFilters the block markup plugins add at the end of a single post, above the author box. The sidebar (hidden-page-post-aside) has its own filters.$html string Block markup, ” by default.patterns/hidden-page-post-end.php
leitvia_query_archive_urlFilterFilters the target of a button bound to leitvia/query-archive, for lists the term and post type archives do not describe, such as the events of one place.$link string|null Address, null to keep the saved url of the block.
$query array Query attribute of the query around the button.
$block \WP_Block Button block.
functions.php
leitvia_related_fallbackFilterFilters the posts related news lists when no post has one of the terms, newest first; none lists the latest posts.$posts int[] Post IDs, none by default.
$post int ID of the current page or post.
functions.php
leitvia_related_termsFilterFilters the terms related news looks for, by taxonomy: array( ‘category’ => array( 3 ), ‘post_tag’ => array( 7 ) ).$terms array<string, int[]> Terms by taxonomy, the categories of a post by default.
$post int ID of the current page or post.
functions.php

Leitvia Studio: 77

HookKindWhat it doesParametersFile
leitvia_studio_ai_image_noteFilterFilters the note below an image made with AI; empty (the default) shows none.$note string Text of the note.
$attachment_id int Attachment ID.
includes/gateway/abilities/class-content.php
leitvia_studio_ai_noteFilterFilters the note before a text written with AI; an empty string hides it.$note string Text of the note.
$post_id int Post ID.
includes/gateway/abilities/class-content.php
leitvia_studio_animation_effectsFilterEffects of add-ons for the attribute leitviaAnimation. Add them on leitvia_studio_init, before the blocks are registered, so their names reach the enum of the attribute.$added mixed Effects by name (lowercase letters, digits and hyphens): kind (entry or scroll), striking (bool), grouped (bool: its blocks in one section count as one animated block in the audit, together with another effect of the section), blocks (block names it fits, empty for any), style (handle of a registered style with its rules), label and description (when it fits, for agents).includes/blocks/class-animation.php
leitvia_studio_avatar_match_emailFilterWhether an email address passed to get_avatar() gets the picture of the member with that address.$match bool Default true.
$email string The address.
includes/avatars/class-avatars.php
leitvia_studio_block_catalogFilterFilters the block catalog that GET /leitvia-studio/v1/blocks returns.$catalog list<array<string, mixed>> Entries as described in schemas/block-catalog.schema.json.includes/blocks/class-catalog.php
leitvia_studio_brandFilterFilters the brand Studio shows to people.$brand array {includes/functions.php
leitvia_studio_bundled_fontsFilterFilters the font faces a token set can use, by lowercased first family name. An add-on that ships its own fonts adds them here with absolute URLs of this site, so a token set that names the family gets the font faces instead of the system fallback. Faces of the theme win: add-ons only add families the theme lacks.$fonts array<string, array<mixed>> Font faces by lowercased family name.includes/tokens/class-dtcg.php
leitvia_studio_collapsible_overlayFilterFilters whether the overlay of this navigation gets collapsible submenus.$collapsible bool Default: a submenu or a mega menu.
$block array<string, mixed> Parsed navigation block.
includes/blocks/class-mega-menu.php
leitvia_studio_consent_link_alwaysFilterFilters whether the Cookie settings link shows although no service on the page needs consent.$always bool Default true: the link shows on every page; false shows it only with scripts that wait or an embed on the page.includes/consent/class-consent-link.php
leitvia_studio_consent_scriptsFilterFilters the scripts that wait for consent. Each entry names a script handle or a host name and a category, ‘statistics’ or ‘marketing’: array( ‘host’ => ‘widgets.example.com’, ‘category’ => ‘marketing’ ).$entries array<int, mixed>includes/consent/class-scripts.php
leitvia_studio_consent_servicesFilterFilters the services the consent placeholder knows. Add a service, change its label, privacy policy or purpose (one sentence shown in the placeholder). The providers saved under Settings, Privacy are in the list already. The keys statistics and marketing are reserved for the categories of scripts (Scripts::categories()) and dropped. An embed from a host no service lists still gets a placeholder, named after the host.$services array<string, array<string, mixed>>includes/consent/class-consent.php
leitvia_studio_contact_form_limitFilterMessages of the contact form per IP address and hour. A site behind a proxy that hides REMOTE_ADDR raises it, since all visitors then share one counter.$limit int 5 by default.includes/blocks/class-contact-form.php
leitvia_studio_contact_form_max_ageFilterOldest time field a submission may carry, in seconds; older ones are refused like a forged one.$max_age int Seconds, 7 days by default.includes/blocks/class-contact-form.php
leitvia_studio_contact_form_sendFilterLets an extension take a checked message instead of the mail, for example to hand it to a ticket system. Return true when it took the message, a WP_Error to show its message to the visitor, or null to let the block send its mail. Recipient and subject come from the block, never from the request.$result true|\WP_Error|null null by default.
$submission array<string, mixed> name, email (checked), message, subject (of the block, may be empty), form (key of the form) and post (ID of the page, 0 for none).
includes/blocks/class-contact-form.php
leitvia_studio_content_modelFilterDeclares content model entries in code. They win over entries of the same key from the Model screen and cannot be changed there.$declaration array<string, mixed> Declaration with the keys postTypes, taxonomies, relations, settings.includes/model/class-model.php
leitvia_studio_contract_pathFilterFilters the candidate paths of the theme contract; the first existing local file wins. Stream wrappers such as php:// or phar:// are ignored.$candidates list<string> Absolute paths, child theme before parent theme.includes/contract/class-contract.php
leitvia_studio_date_formatsFilterFilters the date and time format Leitvia Studio sets for a site language.$formats array<mixed>|null Formats with the keys date and time, null to leave the site as it is.
$locale string Site locale.
includes/class-date-formats.php
leitvia_studio_formal_addressFilterFilters whether the texts for visitors speak formally, such as for one block that speaks otherwise than the site.$formal bool The setting formal_address or a formal locale.includes/class-address.php
leitvia_studio_framed_pagesFilterFilters the add-on screens that use the frame of Studio screens.$pages list<string> Page slugs, for example my-addon-settings.includes/admin/class-admin.php
leitvia_studio_gateway_areasFilterFilters the autonomy level per area after profile and overrides, for example to add the area of an add-on or to apply a policy shared by several sites. Levels are locked, suggest, draft or autonomous; admin and areas without a valid level stay locked.$levels array<string, string> Level by area.
$settings array<string, mixed> Gateway settings.
includes/gateway/class-autonomy.php
leitvia_studio_gateway_content_kindFilterFilters the content kinds of an operation, for example product prices of a commerce add-on. Known kinds are prices, legal, slugs and organization; each caps the level at “suggest” unless the settings allow more.$kinds string[] Content kinds.
$op Operation Operation.
$before array<string, mixed> State before.
$after array<string, mixed> State after.
includes/gateway/class-autonomy.php
leitvia_studio_gateway_executedActionFires after an operation was written live, as a draft or as a change package.$op Operation Operation.
$result array<string, mixed> Result of Pipeline::run().
includes/gateway/class-pipeline.php
leitvia_studio_gateway_optionsFilterFilters the options of add-ons the pipeline writes.$options array<mixed> Check of a new value by option name.includes/gateway/class-pipeline.php
leitvia_studio_gateway_post_typesFilterFilters the post types open to the gateway. A filter can remove types and add types of the content model (repeaters included); other types and the blocked ones (privacy requests, fonts, change packages, orders) are dropped.$post_types list<string> Post types.includes/gateway/class-scope.php
leitvia_studio_gateway_taxonomiesFilterFilters the taxonomies whose terms agents may change through the pipeline. A filter can add taxonomies of the content model, for example the lines of an add-on whose terms carry an icon; any other taxonomy is dropped.$taxonomies list<string> Taxonomies.includes/gateway/class-scope.php
leitvia_studio_gateway_warningsFilterFilters the warnings of a write. Return findings with check, severity warning and message; others are dropped.$warnings array<mixed> Warnings, empty.
$op Operation Operation.
$before array<string, mixed> State before.
$after array<string, mixed> State after.
includes/gateway/class-pipeline.php
leitvia_studio_heading_blocksFilterFilters the blocks that render a heading on the server, by block name the attribute that holds its level (1 to 6, the default of the block type when the attribute is missing). Their saved markup has no heading, so the check counts the level from the attribute, before the headings of the block’s inner blocks.$blocks array<string, string> Attribute by block name.includes/gateway/class-content-checks.php
leitvia_studio_iconsFilterFilters the icons the icon blocks may draw besides the bundled set. Entries by name: svg (inner markup an add-on has cleaned, printed as it is), viewBox and paint.$icons array<mixed> Entries by name.includes/blocks/class-icon.php
leitvia_studio_import_contentFilterFilters the block markup of imported HTML before Studio converts it; null lets Studio convert.$markup string|null Block markup, null by default.
$html string HTML of the source.
$input array<string, mixed> Input of leitvia/import-post.
includes/gateway/abilities/class-import.php
leitvia_studio_import_pattern_fileFilterFilters a decoded import before it is checked, so an add-on can turn another format into a pattern file.$data array<mixed>|\WP_Error Decoded file; a WP_Error refuses the import with its message.includes/lab/class-pattern-io.php
leitvia_studio_initActionFires once on init (priority 5). Add-ons register themselves and their registry entries here.$studio Studio The Studio instance, also returned by leitvia_studio().includes/extension/class-studio.php
leitvia_studio_keep_modifiedFilterWhether an update keeps the date of the last change of a published post. True when title, excerpt and the words of the text stay the same.$same bool Whether the words stayed the same.
$id int Post ID.
$new array<string, mixed> Unslashed data to save.
includes/news/class-modified.php
leitvia_studio_llms_sectionsFilterSections of llms.txt below the summary: a heading each with its pages, as Markdown links with their excerpts. A page listed in an earlier section is left out of later ones, only published pages without a password count, at most MAX_PAGES per section. An add-on adds a section of its own, for example the sections of a documentation: $sections[ __( ‘Guides’, ‘my-addon’ ) ] = $pages.$sections array<string, mixed> Lists of WP_Post by heading: Topics, Services and prices, Pages, Latest posts.includes/seo/class-llms.php
leitvia_studio_max_video_bytesFilterFilters the largest video file in bytes that leitvia/add-media takes.$bytes int Bytes, 50 MB by default.includes/gateway/abilities/class-build.php
leitvia_studio_mcp_approve_toolsFilterFilters the tools a person may call with the scope leitvia:approve.$tools list<string> Tool names, empty by default.includes/mcp/oauth/class-bearer.php
leitvia_studio_mcp_confirmFilterWhether a call of an MCP client that takes form elicitation asks the person first. By default for abilities annotated destructive whose name starts with delete-, remove- or reject- or is rollback, without a package key and without a dry run. A yes changes no permission: the pipeline decides as for any call.$ask bool Whether to ask.
$ability string Ability name.
$input array<string, mixed> Arguments of the call, with the values chosen so far.
includes/mcp/class-input-required.php
leitvia_studio_mcp_stream_limitFilterFilters how many subscription streams the whole site holds open at once.$limit int Default 4.includes/mcp/class-subscriptions.php
leitvia_studio_mcp_tool_metaFilterFilters the _meta of one tool of the MCP server leitvia in tools/list.$meta array<string, mixed> _meta so far, empty for a tool without a view or for a client without views.
$tool string Tool name, such as leitvia-get-package.
$ability \WP_Ability The ability behind the tool.
$context Context|null Protocol state; Apps::offered( $context ) tells whether the client shows views.
includes/mcp/class-apps.php
leitvia_studio_mcp_tool_resultFilterFilters the result of one tools/call of the MCP server leitvia after the ability ran, for example to add _meta a view reads and the model does not.$tool array<string, mixed> CallToolResult with content and, where it applies, structuredContent.
$name string Tool name, such as leitvia-get-package.
$ability \WP_Ability The ability behind the tool.
$result mixed Output of the ability.
$context Context Protocol state; Apps::offered( $context ) tells whether the client shows views.
includes/mcp/class-tools.php
leitvia_studio_mega_menu_findingsFilterFilters the findings of leitvia/audit-site about one mega menu panel, so an add-on adds its own, such as a price that names no product. Each finding has check, severity (error or warning), block, message and fix.$found array<mixed> Findings about the panel, empty by default.
$part \WP_Block_Template The panel.
$html string The rendered panel.
includes/gateway/abilities/class-read-audit.php
leitvia_studio_menu_iconFilterFilters the icon of the admin menu: a dashicons class, a base64 SVG data URI or the URL of an image, which the menu shows 20 pixels wide.$icon string Default: the Leitvia mark, or a neutral dashicon under another brand with a logo.
$brand array Brand from leitvia_studio_brand().
includes/admin/class-admin.php
leitvia_studio_news_categoriesFilterCategories whose posts are news articles (NewsArticle instead of BlogPosting, entries of the news sitemap). Empty makes every post news.$categories array<int|string> Category IDs, slugs or names. Default the setting news_categories.includes/news/class-schema.php
leitvia_studio_news_sitemap_enabledFilterWhether Leitvia Studio serves /news.xml and names it in robots.txt.$enabled bool Setting on, site public and no other news sitemap plugin active.includes/news/class-sitemap.php
leitvia_studio_oauth_availableFilterFilters whether OAuth of the MCP server can run on this site, for example behind a proxy that ends TLS.$available bool Whether the home address uses https or the environment is local.includes/mcp/oauth/class-oauth.php
leitvia_studio_oauth_max_ageFilterFilters the longest life of an OAuth connection from its consent, in seconds.$max_age int MAX_AGE, 90 days.
$client_id string Client of the connection.
includes/mcp/oauth/class-tokens.php
leitvia_studio_oauth_rate_limitFilterFilters the calls per minute of one OAuth connection and one tool.$limit int READ_LIMIT or WRITE_LIMIT.
$tool string Tool name.
$reads bool Whether the tool only reads.
$user_id int User of the token.
includes/mcp/oauth/class-bearer.php
leitvia_studio_oauth_throttleFilterFilters how many requests a shortened IP address may send to an anonymous OAuth route per window; 0 switches the limit off, for example behind a proxy that hides the addresses.$limit int Requests per window: 10 an hour for register, 60 a minute for token.
$route string register or token.
includes/mcp/oauth/class-routes.php
leitvia_studio_open_graphFilterWhether Leitvia Studio prints Open Graph and Twitter Card tags while no SEO plugin is active. Return false when another plugin prints them.$print bool Default true.includes/news/class-head.php
leitvia_studio_overlay_appliesFilterFilters whether token overlays apply to the current request.$applies bool True on the front end outside REST requests and token set previews.includes/tokens/class-overlays.php
leitvia_studio_overlay_changedActionFires once when an overlay starts or ends, on the first front-end request that notices it.$set_id int ID of the set now laid over the base styles, 0 when none is.includes/tokens/class-overlays.php
leitvia_studio_own_hostsFilterFilters the hosts that count as the own site besides the host of home_url(), such as a CDN of the site. Their iframes, videos and images need no consent, and leitvia/audit-site does not report their media.$hosts list<string> Host names in lowercase, none by default.includes/consent/class-consent.php
leitvia_studio_package_appliedActionFires after a change package was applied, fully or in part.$id int Package ID.includes/gateway/class-packages.php
leitvia_studio_package_createdActionFires after a change package was created.$id int Package ID.
$entry array<string, mixed> Its first operation.
includes/gateway/class-packages.php
leitvia_studio_package_rolled_backActionFires after an applied change package was rolled back.$id int Package ID.includes/gateway/class-packages.php
leitvia_studio_page_serviceFilterFilters the service of a page or entry, for example to take its packages and prices from offerings an add-on keeps (see OFFERINGS_META), so the price lives in one place. Return the shape of Cluster::service() or null for none; it is cleaned as a stored service is, and Schema, llms.txt and leitvia/get-seo use it.$stored array<string, mixed>|null The service stored with leitvia/set-page-structure, or null.
$page int Post ID.
includes/seo/class-cluster.php
leitvia_studio_page_symbolFilterFilters the lead symbol of a page: the name of an icon of the icon blocks, ” for none.$icon string Icon of leitvia/set-page-structure, ” without one.
$post_id int Post ID.
includes/model/class-bindings.php
leitvia_studio_pattern_datesFilterFilters the dates of registered patterns, which the Lab shows as “Updated” and sorts by.$dates mixed Array of { added, updated } as YYYY-MM-DD by pattern slug.includes/lab/class-pattern-dates.php
leitvia_studio_patterns_changedActionFires when the patterns agents may use changed: a registered pattern outside the contract was approved in the Lab or its approval withdrawn. The MCP server tells subscribed clients.$slug string Pattern slug.includes/lab/class-foreign-patterns.php
leitvia_studio_post_metaFilterFilters the post meta keys of add-ons that belong to the state of a post, by post type, so writes through the pipeline set them, change packages and rollbacks restore them and hashes cover them. Only post types agents may edit (post, page and the types of the content model) take them. For example the dates of an add-on on posts: $keys[‘post’][] = ‘_my_addon_date’.$keys array<string, list<string>> Meta keys by post type.includes/gateway/abilities/class-content.php
leitvia_studio_preview_siteFilterWhether the site is a preview, test or staging copy, where a site closed to search engines is no finding.$preview bool Default: the environment type is not production.includes/gateway/abilities/class-read-audit.php
leitvia_studio_progressActionAction an ability fires to report its progress; a tools/call with a progress token streams each report.$done int Steps done so far.
$total int Steps in all, 0 when unknown.
$message string Short message in English, may be ”.
includes/mcp/class-progress.php
leitvia_studio_public_author_nameFilterFilters the name visitors see for an author without a display name of their own.$name string First and last name, else the name of the site.
$user_id int User ID.
includes/model/class-author-name.php
leitvia_studio_query_attribute_keysFilterFilters the keys an add-on reads from the query attribute of core/query, as JSON schema by key, so leitvia/update-block and the edits of compose-page and insert-pattern take them; the keys of core and taxQuery cannot be replaced. For example $keys[‘myAddonList’] = array( ‘type’ => ‘string’, ‘enum’ => array( ‘a’, ‘b’ ) ).$keys array<string, array<string, mixed>> JSON schema by key.includes/gateway/class-block-edit.php
leitvia_studio_rate_limitFilterFilters the calls per minute of one user, for example to give a build agent more reads.$limit int Reads or writes per minute from the settings.
$read bool Whether the limit is the one for reads.
$user_id int User ID.
includes/gateway/class-abilities.php
leitvia_studio_recipe_documentFilterFilters a recipe right after its file is read, for runs, dry runs, the plan of the Recipes screen and the list: an add-on localises page titles, section edits, navigation labels, title and description here. The recipe keeps the shape of schemas/recipe.schema.json; page slugs stay, since runs find pages by them.$recipe array<string, mixed> Recipe.
$name string Registry name of the recipe.
includes/gateway/class-recipes.php
leitvia_studio_recipe_modelFilterFilters the content model declaration of a recipe before leitvia/define-content-type writes it, and in the plan and the dry run: an add-on localises the labels of post types, taxonomies, fields, relations and settings here. Keys stay as they are.$declaration array<mixed> Declaration.
$name string Registry name of the recipe.
includes/gateway/class-recipes.php
leitvia_studio_recipe_plan_stepsFilterFilters the steps of a dry run of a recipe (leitvia/apply-recipe with dryRun) before the report. An add-on adds what its own steps would do, in the shape of the other steps with the status new, replace, exists, package or waiting, and writes nothing. Add-ons that do not use this filter add nothing to a dry run.$steps list<array<string, mixed>> Steps so far.
$name string Registry name of the recipe.
$recipe array<string, mixed> Recipe.
$key string Package key of the run.
$pages array<string, int> Page IDs by recipe slug, 0 for a page that is not on the site yet.
$sel array<string, mixed> Selection: parts, pages, buildingBlocks, contentModel and dryRun.
includes/gateway/class-recipes.php
leitvia_studio_recipe_step_labelsFilterFilters the labels of recipe steps and their codes, for example the steps an add-on adds through leitvia_studio_recipe_steps. Labels are translated, one or a few words for a step, one sentence for a code.$labels array<string, mixed> Labels: steps and codes, each an array of labels by step name or code.includes/gateway/class-recipes.php
leitvia_studio_recipe_stepsFilterFilters the steps of a recipe run before the report. An add-on adds the steps of its own recipes here, each written through an ability or Pipeline::run() with the package key, in the shape of the other steps (step, ability, status, target, code, package), and skips those whose part is not in the selection. In a person’s run what collected before is applied already, and what the add-on collects is applied after the filter.$steps list<array<string, mixed>> Steps so far.
$name string Registry name of the recipe.
$recipe array<string, mixed> Recipe.
$key string Package key of the run.
$pages array<string, int> Page IDs by recipe slug, 0 for a page that is not on the site yet.
$sel array<string, mixed> Selection: parts, pages, buildingBlocks, contentModel and dryRun.
includes/gateway/class-recipes.php
leitvia_studio_recipe_unavailableFilterFilters why a recipe cannot be applied on this site; ” lets it apply. list-recipes shows the reason, and apply-recipe refuses with it.$reason string Reason, ” when the recipe can be applied.
$name string Registry name of the recipe.
$recipe array<string, mixed> Recipe.
includes/gateway/class-recipes.php
leitvia_studio_retired_patternsFilterFilters the deleted patterns and their successors. An add-on adds the patterns it deleted, so pages and templates that still name them render the successor.$retired array<string, string> Slug of the successor by deleted slug.includes/blocks/class-blocks.php
leitvia_studio_schema_nodesFilterFilters the JSON-LD nodes that blocks added on this request. Also the place where a kit adds the node of its own entries (a Service on the page of a service): check the request and append the node. Beside an SEO plugin the nodes go into its graph (Seo\Plugin_Graph), so an add-on adds its nodes the same way in both cases.$nodes list<array<string, mixed>> Nodes.includes/blocks/class-schema-nodes.php
leitvia_studio_screen_notesActionFires above the app of every Studio screen, for notes on the screen. Output appears in an aside the user can dismiss.$slug string Page slug of the screen, for example leitvia-studio.includes/admin/class-admin.php
leitvia_studio_seo_adapterFilterFilters the SEO plugin whose meta Leitvia Studio reads and writes: yoast, rank-math, seopress, tsf, aioseo, slim-seo, or ” for none, which means Studio itself unless an SEO plugin it does not know is active.$found string Key of the detected plugin.includes/gateway/abilities/class-seo.php
leitvia_studio_seo_plugin_activeFilterFilters whether an SEO plugin is active. Return true for an SEO plugin the check does not know.$active bool Whether a known SEO plugin is active.includes/functions.php
leitvia_studio_term_metaFilterFilters the term meta keys that belong to the state of a term, by taxonomy, so writes through the pipeline set them, rollbacks restore them and hashes cover them. For example an icon of the terms of an add-on: $keys[‘my_addon_line’][] = ‘my_addon_icon’.$keys array<string, list<string>> Meta keys by taxonomy.includes/gateway/class-pipeline.php
leitvia_studio_token_set_activatedActionFires after a token set was written into the user global styles.$set_id int Token set ID.
$settings array<string, mixed> The compiled theme.json settings.
includes/tokens/class-compiler.php

Leitvia Pro: 19

HookKindWhat it doesParametersFile
leitvia_pro_booking_limitFilterFilters how many appointments one IP address may book per hour.$limit int Bookings per hour, 3 by default.includes/class-booking.php
leitvia_pro_booking_nowFilterFilters the time the free times of the booking block count from, a Unix timestamp; a test page holds it still.$now int Now.includes/class-booking.php
leitvia_pro_event_typesFilterFilters the post types that take event data.$types list<string> Post types, by default those of the setting under Settings, Reading.includes/class-events.php
leitvia_pro_kit_unlockedFilterFilters whether a kit can be applied on this site.$unlocked bool Whether the license is active and the portal lists the kit.
$slug string Kit slug.
includes/class-kits.php
leitvia_pro_language_menu_languagesFilterFilters the languages of the language menu, for language plugins other than Polylang and WPML.$languages array List of arrays with code, name, url, flag, flag_width, flag_height, locale, current and missing, as Language_Menu::languages() describes them.includes/class-language-menu.php
leitvia_pro_mcp_preview_bytesFilterFilters the largest file a preview of app-media reads, in bytes.$bytes int 262144 by default.includes/class-mcp-apps.php
leitvia_pro_mcp_preview_totalFilterFilters the most bytes of the previews of one call of app-media, data: URIs counted.$bytes int 2097152 by default.includes/class-mcp-apps.php
leitvia_pro_migrate_unlockedFilterFilters whether the migration readers run on this site.$unlocked bool Whether the license of Leitvia Pro is an active Agency or Unlimited license.includes/class-migrate.php
leitvia_pro_newsletter_adaptersFilterFilters the adapters for newsletter plugins, for example to add one for another plugin.$adapters array<string, array{label: string, ready: callable(): bool, subscribe: callable( string ): bool}> By id: label, ready (callable, whether the plugin takes a sign-up now) and subscribe (callable, takes the checked address, true when the plugin took it).includes/class-newsletter.php
leitvia_pro_newsletter_limitFilterSign-ups of the newsletter form per IP address and hour.$limit int 5 by default.includes/class-newsletter.php
leitvia_pro_order_connectorsFilterThe former name of leitvia_pro_ticket_connectors, still applied.$connectors array<mixed> Connectors by key.includes/class-tickets.php
leitvia_pro_order_limitFilterOrders and requests of the order form per IP address and hour.$limit int 5 by default.includes/class-order-form.php
leitvia_pro_place_typesFilterFilters the post types that take place data, for example a type of places of the content model.$types list<string> Post types.includes/class-events.php
leitvia_pro_portal_urlFilterFilters the base URL of the Leitvia Portal that checks the license.$url string Base URL, default LEITVIA_PRO_PORTAL_URL.includes/class-license.php
leitvia_pro_swatch_colorFilterFilters the colour of a swatch: a hex value, var(–wp–preset–color–<slug>) or null for a text swatch.$color string|null Colour found.
$value string Option or term slug.
$term \WP_Term|null Term of a global attribute.
includes/class-swatches.php
leitvia_pro_ticket_connectorsFilterFilters the ticket systems the forms can hand their data to.$connectors array<mixed> Connectors by key: label, ready, send and optionally note.includes/class-tickets.php
leitvia_pro_ticket_deliveredActionA ticket reached the ticket system.$ref string The ref of the caller.
$number string Ticket number, ” when the connector gives none.
$form string Form key.
includes/class-tickets.php
leitvia_pro_ticket_failedActionA ticket gave up after the last automatic try; it stays in the queue for FAILED_DAYS.$ref string The ref of the caller.
$id int Number of the queue entry.
includes/class-tickets.php
leitvia_pro_ticket_form_limitFilterMessages of the ticket form per IP address and hour.$limit int 5 by default.includes/class-ticket-form.php