{"id":409562,"date":"2026-12-03T09:35:53","date_gmt":"2026-12-03T09:35:53","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/trecova-companion\/"},"modified":"2026-12-03T09:35:29","modified_gmt":"2026-12-03T09:35:29","slug":"trecova-companion","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/trecova-companion\/","author":18055861,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.0.4","stable_tag":"2.0.4","tested":"7.1.5","requires":"6.6","requires_php":"8.1","requires_plugins":null,"header_name":"Trecova Companion","header_author":"Herv\u00e9 CARROTTE Consulting (H2C)","header_description":"Custom Gutenberg blocks, SEO, paid search (Google Ads, Analytics, Tag Manager) and cookie consent management. Works with any theme; designed for the Trecova theme.","last_updated":"2026-12-03 09:35:29","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/www.hcconsulting.fr\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":192,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"2.0.4":{"tag":"2.0.4","author":"herveh2c","date":"2026-12-03 09:35:29","revision":3842061}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3842061,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3842061,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":3842061,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3842061,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3842061,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":{"trecova-blocks\/steps":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"trecova-blocks\/steps","version":"1.0.0","title":"Trecova Steps","category":"trecova-blocks","description":"Numbered step timeline (method, process). Accessible ordered list.","keywords":["steps","method","process","timeline"],"textdomain":"trecova-companion","attributes":{"items":{"type":"array","default":[]},"headingLevel":{"type":"number","default":3},"layout":{"type":"string","enum":["horizontal","vertical"],"default":"horizontal"}},"supports":{"html":false,"anchor":true,"align":["wide","full"],"spacing":{"margin":true}},"editorScript":"file:.\/index.js","style":"file:.\/style-index.css","editorStyle":"file:.\/index.css","render":"file:.\/render.php"},"trecova-blocks\/faq":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"trecova-blocks\/faq","version":"1.0.0","title":"Trecova FAQ","category":"trecova-blocks","description":"Expandable questions and answers, keyboard accessible, with FAQPage structured data for Google.","keywords":["faq","questions","accordion"],"textdomain":"trecova-companion","attributes":{"items":{"type":"array","default":[]},"schema":{"type":"boolean","default":true},"openFirst":{"type":"boolean","default":false}},"supports":{"html":false,"anchor":true,"spacing":{"margin":true}},"editorScript":"file:.\/index.js","style":"file:.\/style-index.css","editorStyle":"file:.\/index.css","render":"file:.\/render.php"},"trecova-blocks\/breadcrumb":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"trecova-blocks\/breadcrumb","version":"1.0.1","title":"Trecova Breadcrumb","category":"trecova-blocks","description":"Accessible breadcrumb (secondary navigation) with BreadcrumbList structured data. Hidden on the front page.","keywords":["trail","breadcrumb","navigation"],"textdomain":"trecova-companion","attributes":{"homeLabel":{"type":"string","default":""},"tone":{"type":"string","enum":["light","dark"],"default":"light"}},"supports":{"html":false,"align":["wide"],"spacing":{"margin":true}},"usesContext":["postId","postType"],"editorScript":"file:.\/index.js","style":"file:.\/style-index.css","render":"file:.\/render.php"},"trecova-blocks\/stat":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"trecova-blocks\/stat","version":"1.0.0","title":"Trecova Key figure","category":"trecova-blocks","description":"A highlighted figure and its caption.","keywords":["figure","statistic","kpi"],"textdomain":"trecova-companion","attributes":{"value":{"type":"string","default":""},"label":{"type":"string","default":""},"tone":{"type":"string","enum":["auto","light","dark"],"default":"auto"}},"supports":{"html":false,"spacing":{"margin":true}},"editorScript":"file:.\/index.js","style":"file:.\/style-index.css","render":"file:.\/render.php"},"trecova-blocks\/cta":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"trecova-blocks\/cta","version":"1.0.0","title":"Trecova Call to action","category":"trecova-blocks","description":"Conversion box: title, text and button (optional ad conversion tracking).","keywords":["cta","contact","quote","button","conversion"],"textdomain":"trecova-companion","attributes":{"title":{"type":"string","default":""},"text":{"type":"string","default":""},"buttonText":{"type":"string","default":""},"buttonUrl":{"type":"string","default":""},"variant":{"type":"string","enum":["dark","accent","light"],"default":"dark"},"headingLevel":{"type":"number","default":2},"trackConversion":{"type":"boolean","default":false}},"supports":{"html":false,"anchor":true,"align":["wide","full"],"spacing":{"margin":true}},"editorScript":"file:.\/index.js","style":"file:.\/style-index.css","render":"file:.\/render.php"},"trecova-blocks\/contact-info":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"trecova-blocks\/contact-info","version":"1.0.0","title":"Trecova Contact details","category":"trecova-blocks","description":"Phone, email and address taken from the Trecova settings (a single source to update).","keywords":["contact","phone","address","email"],"textdomain":"trecova-companion","attributes":{"showPhone":{"type":"boolean","default":true},"showEmail":{"type":"boolean","default":true},"showAddress":{"type":"boolean","default":true},"layout":{"type":"string","enum":["cards","list"],"default":"cards"}},"supports":{"html":false,"spacing":{"margin":true}},"editorScript":"file:.\/index.js","style":"file:.\/style-index.css","render":"file:.\/render.php"},"trecova-blocks\/cookie-list":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"trecova-blocks\/cookie-list","version":"1.0.0","title":"Trecova Cookie list","category":"trecova-blocks","description":"Always up-to-date table of purposes, partners, cookies and lifetimes (built from Settings > Trecova). Place it in your cookie policy.","keywords":["cookies","gdpr","consent","partners","policy"],"textdomain":"trecova-companion","attributes":{"headingLevel":{"type":"number","default":2},"showButton":{"type":"boolean","default":true}},"supports":{"html":false,"align":["wide"],"spacing":{"margin":true}},"editorScript":"file:.\/index.js","render":"file:.\/render.php"},"trecova-blocks\/external-media":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"trecova-blocks\/external-media","version":"1.0.0","title":"Trecova Video or map (with consent)","category":"trecova-blocks","description":"YouTube, Vimeo, Dailymotion, Google Maps or OpenStreetMap loaded only when the visitor clicks (GDPR).","keywords":["video","youtube","map","maps","gdpr"],"textdomain":"trecova-companion","attributes":{"url":{"type":"string","default":""},"title":{"type":"string","default":""},"ratio":{"type":"string","default":"16\/9"},"caption":{"type":"string","default":""}},"supports":{"html":false,"align":["wide","full"],"spacing":{"margin":true}},"editorScript":"file:.\/index.js","render":"file:.\/render.php"},"trecova-blocks\/service-card":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"trecova-blocks\/service-card","version":"1.0.0","title":"Trecova Service card","category":"trecova-blocks","description":"Card presenting a service: icon, title, text and descriptive link.","keywords":["service","map","offer"],"textdomain":"trecova-companion","attributes":{"icon":{"type":"string","default":"code"},"title":{"type":"string","default":""},"text":{"type":"string","default":""},"linkText":{"type":"string","default":""},"linkUrl":{"type":"string","default":""},"badge":{"type":"string","default":""},"variant":{"type":"string","enum":["light","dark"],"default":"light"},"headingLevel":{"type":"number","default":3}},"supports":{"html":false,"anchor":true,"spacing":{"margin":true}},"example":{"attributes":{"icon":"code","title":"Web & software development","text":"Custom software, web and mobile applications."}},"editorScript":"file:.\/index.js","style":"file:.\/style-index.css","render":"file:.\/render.php"}},"tagged_versions":["2.0.4"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[1953,4121,16626,131785,186],"plugin_category":[34,55],"plugin_contributors":[297402],"plugin_business_model":[],"class_list":["post-409562","plugin","type-plugin","status-publish","hentry","plugin_tags-accessibility","plugin_tags-blocks","plugin_tags-cookie-consent","plugin_tags-gdpr","plugin_tags-seo","plugin_category-accessibility","plugin_category-seo-and-marketing","plugin_contributors-herveh2c","plugin_committers-herveh2c"],"banners":{"banner":"https:\/\/ps.w.org\/trecova-companion\/assets\/banner-772x250.png?rev=3842061","banner_2x":"https:\/\/ps.w.org\/trecova-companion\/assets\/banner-1544x500.png?rev=3842061","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/trecova-companion\/assets\/icon.svg?rev=3842061","icon":"https:\/\/ps.w.org\/trecova-companion\/assets\/icon.svg?rev=3842061","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Trecova Companion adds the features that do not belong in a theme:<\/p>\n\n<ul>\n<li><strong>9 accessible blocks<\/strong>: service card, steps, key figure, call to action, FAQ (native details, FAQPage data),\ncontact details, breadcrumb (BreadcrumbList data), video or map loaded on consent, cookie list.<\/li>\n<li><strong>SEO<\/strong>: title, description, Open Graph, canonical URL, noindex per page and structured data.\nTurns itself off when Yoast SEO, SEOPress or Rank Math is active.<\/li>\n<li><strong>Cookie consent<\/strong> following the French CNIL recommendations: purposes listed on the first screen,\n\"Accept all\", \"Reject all\" and \"Customise\" buttons of equal weight, number of partners, choice per\npurpose (unchecked by default), partner list with links to their privacy policies, cookie lifetime\n(13 months maximum) and choice retention (6 months). Nothing is loaded before consent.<\/li>\n<li><strong>Paid search and analytics<\/strong> (Google Tag Manager, Google Analytics 4, Google Ads, Meta Pixel),\nloaded only after consent, with Google Consent Mode v2.<\/li>\n<li><strong>Privacy clean-up<\/strong>: no emoji script from s.w.org, no DNS prefetch to s.w.org, WordPress version hidden\n(can be turned off with the <code>trecova_companion_privacy_cleanup<\/code> filter).<\/li>\n<li><strong>Private site mode<\/strong> for pre-production: add <code>define( 'TRECOVA_COMPANION_PRIVATE', true );<\/code> to wp-config.php.<\/li>\n<\/ul>\n\n<p>New blocks can be added at any time: one folder in <code>src\/blocks<\/code>, then <code>npm run build<\/code>.<\/p>\n\n<h4>Source code<\/h4>\n\n<p>The block scripts in <code>build\/<\/code> are compiled with <code>@wordpress\/scripts<\/code>. Their uncompiled source code is\nincluded in the plugin, in the <code>src\/<\/code> folder, with <code>package.json<\/code> and <code>package-lock.json<\/code>. To rebuild:\n    npm ci &amp;&amp; npm run build.<\/p>\n\n<h3>External services<\/h3>\n\n<p>The plugin itself sends no data anywhere. Third-party services are contacted only if the site owner\nconfigures them in Settings &gt; Trecova <strong>and<\/strong> the visitor consents to the matching purpose:<\/p>\n\n<ul>\n<li>Google Tag Manager, Google Analytics 4 and Google Ads (Google Ireland Limited) \u2014 audience measurement\nand advertising. Terms: https:\/\/policies.google.com\/terms \u2014 Privacy: https:\/\/policies.google.com\/privacy<\/li>\n<li>Meta Pixel (Meta Platforms Ireland Limited) \u2014 advertising.\nTerms: https:\/\/www.facebook.com\/legal\/terms \u2014 Privacy: https:\/\/www.facebook.com\/privacy\/policy\/<\/li>\n<li>YouTube (youtube-nocookie.com), Vimeo (dnt=1), Dailymotion, Google Maps and OpenStreetMap \u2014 embedded\nvideos and maps, loaded only after a click or consent to \"social media and external content\".\nYouTube \/ Google Maps: see Google above. Vimeo: https:\/\/vimeo.com\/terms and https:\/\/vimeo.com\/privacy.\nDailymotion: https:\/\/legal.dailymotion.com\/. OpenStreetMap: https:\/\/osmfoundation.org\/wiki\/Privacy_Policy<\/li>\n<\/ul>\n\n<p>The visitor's choice is stored for 6 months in a first-party cookie (trecova_companion_consent).<\/p>\n\n<h3>Copyright<\/h3>\n\n<p>Trecova Companion, (C) 2026 Herv\u00e9 CARROTTE Consulting (H2C). Distributed under the GNU GPL v2 or later.\nIcons: original work, GPLv2 or later.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Plugins &gt; Add New &gt; Upload Plugin, then activate.<\/li>\n<li>Settings &gt; Trecova: contact details, tracking IDs (optional), additional partners and cookie durations.<\/li>\n<li>Add a \"Manage cookies\" link to your footer with the URL <code>#manage-cookies<\/code>.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20it%20work%20without%20the%20trecova%20blocks%20theme%3F\"><h3>Does it work without the Trecova Blocks theme?<\/h3><\/dt>\n<dd><p>Yes. Colours fall back to sensible defaults; with Trecova Blocks they follow the theme palette.<\/p><\/dd>\n<dt id=\"is%20a%20cookie%20banner%20shown%20if%20i%20use%20no%20tracking%20tool%3F\"><h3>Is a cookie banner shown if I use no tracking tool?<\/h3><\/dt>\n<dd><p>No. The banner only appears when at least one tracker needs consent.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.0.4<\/h4>\n\n<ul>\n<li>Security: every output is escaped at the time it is printed. SVG icons (filterable) are sanitized against an SVG allowlist; block wrapper attributes, rich text, the media placeholder and the partner table are escaped when output.<\/li>\n<li>Block attributes in patterns are serialized with serialize_block_attributes(); JSON-LD is encoded with wp_json_encode() without flags.<\/li>\n<li>Translations are no longer bundled: they are provided by translate.wordpress.org language packs (load_plugin_textdomain() removed).<\/li>\n<\/ul>\n\n<h4>2.0.3<\/h4>\n\n<ul>\n<li>The Trecova logo is shown next to the title of the Settings &gt; Trecova page.<\/li>\n<\/ul>\n\n<h4>2.0.2<\/h4>\n\n<ul>\n<li>Editor: the \"Choose a pattern\" window shown when creating a page presents each pattern in a clearly separated card, with a readable title and a preview of limited height. Can be disabled with the trecova_companion_pattern_chooser_style filter.<\/li>\n<li>Patterns: the page patterns are renamed by type (\"Page \u00b7 Ad landing page (Google Ads)\", \"Page \u00b7 Service details\"), consistent with the Trecova Blocks theme.<\/li>\n<\/ul>\n\n<h4>2.0.1<\/h4>\n\n<ul>\n<li>Plugin Check: heading levels of the Call to action, Service card, Steps and Cookie list blocks are cast to integers when printed.<\/li>\n<li>Plugin Check: removed an unused filter on resource hints that named s.w.org (WordPress 6.6 and later no longer add this DNS prefetch; emojis stay disabled).<\/li>\n<\/ul>\n\n<h4>2.0.0<\/h4>\n\n<ul>\n<li>Renamed from Elan Companion to Trecova Companion (slug, text domain, block namespace trecova-blocks\/\u2026, PHP prefixes, option and cookie names, CSS classes, JavaScript API window.trecovaConsentApi and event trecova:consent).<\/li>\n<\/ul>\n\n<h4>1.5.1<\/h4>\n\n<ul>\n<li>Breadcrumb block: very long words wrap instead of overflowing on small screens.<\/li>\n<li>\"Tested up to\" is declared in this readme only (WordPress.org requirement).<\/li>\n<\/ul>\n\n<h4>1.5.0<\/h4>\n\n<ul>\n<li>Privacy clean-up and private site mode moved here from the theme.<\/li>\n<\/ul>\n\n<h4>1.4.0<\/h4>\n\n<ul>\n<li>Renamed Trecova Companion (slug trecova-companion).<\/li>\n<\/ul>","raw_excerpt":"Accessible blocks, SEO, consent-based tracking and a two-level cookie banner (CNIL \/ GDPR). Works with any theme; designed for Trecova Blocks.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/409562","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=409562"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/herveh2c"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=409562"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=409562"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=409562"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=409562"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=409562"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=409562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}