PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.2
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.2
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
wordpress-seo / src / bulk-editor / infrastructure / posts / searchable-fields-trait.php

searchable-fields-trait.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 28.2, at src/bulk-editor/infrastructure/posts/searchable-fields-trait.php

28 lines 861 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
4 namespace Yoast\WP\SEO\Bulk_Editor\Infrastructure\Posts;
5
6 /**
7 * Provides the fields matched by the bulk editor's catch-all search.
8 */
9 trait Searchable_Fields_Trait {
10
11 /**
12 * The fields matched by the catch-all search, as a map of indexable column to Yoast meta key suffix.
13 *
14 * The post title is searched separately by both collectors because it lives in the posts table, not here.
15 *
16 * @return array<string, string> The searchable fields.
17 */
18 protected function searchable_fields(): array {
19 return [
20 'primary_focus_keyword' => 'focuskw',
21 'title' => 'title',
22 'description' => 'metadesc',
23 'open_graph_title' => 'opengraph-title',
24 'open_graph_description' => 'opengraph-description',
25 ];
26 }
27 }
28