bool $isGbPackage = Relation::propEq( 'kind_slug', 'gutenberg' ); return wpml_collect( apply_filters( 'wpml_st_get_post_string_packages', [], $postId ) ) ->filter( $isGbPackage ) ->first(); } /** * @param \WPML_Package|null $package */ public static function delete( $package ) { $package && do_action( 'wpml_delete_package', $package->name, $package->kind ); } }