Skip to content

Instantly share code, notes, and snippets.

@iworks
Created March 5, 2023 06:09
Show Gist options
  • Save iworks/2f55efaa94700ae2bdfe5abccc09a2fe to your computer and use it in GitHub Desktop.
Save iworks/2f55efaa94700ae2bdfe5abccc09a2fe to your computer and use it in GitHub Desktop.
Zmiana domyślnych sierotek
<?php
/**
* Zmiana domyślnych sierotek
*
* https://wordpress.org/support/topic/zmiana-domyslnych-sierotek/
*
* Chcę zamienić całą listę domyślnych sierotek na tylko te zaproponowane
* przeze mnie (a, i, o, u, w, z ).
*
*/
add_filter( 'iworks_orphan_terms', function( $terms ) {
return array( 'a', 'i', 'o', 'u', 'w', 'z', );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment