Created
January 21, 2021 06:20
-
-
Save serguk89/43ba8b61e21e1882545a9910637e4c67 to your computer and use it in GitHub Desktop.
Добавление новых разделителей Yoast SEO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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