Skip to content

Instantly share code, notes, and snippets.

@serguk89
Created January 21, 2021 06:20
Show Gist options
  • Save serguk89/43ba8b61e21e1882545a9910637e4c67 to your computer and use it in GitHub Desktop.
Save serguk89/43ba8b61e21e1882545a9910637e4c67 to your computer and use it in GitHub Desktop.
Добавление новых разделителей Yoast SEO
function add_new_separator( $separators ) {
$separators_new = [
'sc-flore' => '✿',
'sc-air' => '✈',
'sc-drive' => '✇',
'sc-skull' => '☠',
'sc-anchor' => '⚓',
'sc-circle-star' => '✯',
'sc-gier' => '⚙',
];
$separators = array_merge( $separators, $separators_new );
return $separators;
}
add_filter( 'wpseo_separator_options', 'add_new_separator' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment