Skip to content

Instantly share code, notes, and snippets.

@shirokoweb
Created May 17, 2023 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shirokoweb/c7e8d8780b31831a699d0e21f2ce472d to your computer and use it in GitHub Desktop.
Save shirokoweb/c7e8d8780b31831a699d0e21f2ce472d to your computer and use it in GitHub Desktop.
seopress
<?php
add_filter('seopress_schemas_mapping_select', 'sp_schemas_mapping_select');
function sp_schemas_mapping_select($select) {
// Add the new group option + option to the list
$select['Custom variables'] = [
'my_custom_var_key' => __('My super custom var', 'wp-seopress-pro'),
'my_repeater_field' => __('ACF Repeater Field', 'wp-seopress-pro'),
];
// Get the ACF repeater field data
$repeater_data = get_field('my_repeater_field');
// Loop through the repeater field data and add variables to the $select array
if ($repeater_data) {
foreach ($repeater_data as $index => $row) {
$variable_key = 'my_repeater_field_' . $index . '_subfield_1';
$variable_label = __('Repeater Field Subfield 1', 'wp-seopress-pro') . ' ' . ($index + 1);
$select['Custom variables'][$variable_key] = $variable_label;
}
}
return $select;
}
<script type="application/ld+json"> {
"@context": "https://schema.org",
"@type": "WebPage",
"@id": "https://saimple.com/solutions/iso-standards-eu-ai-act-compliance/#ContentSchema",
"headline": "Validate AI Models for ISO/IEC 24029 standards & EU AI-Act Compliance with Saimple",
"url": "https://saimple.com/solutions/iso-standards-eu-ai-act-compliance/",
"about": [
{"@type": "Organization", "name": "EU AI-Act", "sameAs": "https://en.wikipedia.org/wiki/International_Organization_for_Standardization"},
{"@type": "Organization", "name": "European_Union", "sameAs": "https://en.wikipedia.org/wiki/European_Union"}
],
"mentions": [
{"@type": "Thing", "name": "Artificial Intelligence (AI) — Assessment of the robustness of neural networks — Part 1: Overview", "sameAs": "https://www.iso.org/standard/77609.html"},
{"@type": "Thing", "name": "Artificial Intelligence (AI) — Assessment of the robustness of neural networks — Part 2: Methodology for the use of formal methods", "sameAs": "https://www.iso.org/standard/79804.html"},
{"@type": "Thing", "name": "harmonised rules on artificial intelligence (artificial intelligence act, EU AI-Act)", "sameAs": "https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=celex%3A52021PC0206"},
{"@type": "Thing", "name": "software", "sameAs": "https://en.wikipedia.org/wiki/Software"},
{"@type": "Thing", "name": "regulations", "sameAs": "https://en.wikipedia.org/wiki/Regulation"},
{"@type": "Thing", "name": "requirement", "sameAs": "https://en.wikipedia.org/wiki/Requirement"},
{"@type": "Thing", "name": "standard", "sameAs": "https://en.wikipedia.org/wiki/Technical_standard"}
]
} </script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment