public final function get_package_type_prefix($type, $post_id) { if ($type == 'package') { $package = new WPML_Package($post_id); if ($package) { $type = $package->get_string_context_from_package(); } } return $type; }