apply_filters( 'wpml_active_string_package_kinds', array $kinds );
Description
It will ensure that the 3rd party plugin which inserted string packages in the database is still active, and that the Translate Everything Automatically process will only apply on active string package kinds.
Arguments
$kindsarrayList of active kinds with the following keys:titlestringThe title of the kind. It should be the same as thekindkey for packages.pluralstringThe plural form for the title.slugstringThe slug of the kind. It should be the same as thekind_slugkey for packages.
Example Usage
add_filter( 'wpml_active_string_package_kinds', function( $kinds ) { $kinds['foo-form'] = [ 'title' => 'Foo Form', 'plural' => 'Foo Forms', 'slug' => 'foo-form', ]; return $kinds; } );