ClassesBigCommercePost_TypesProductUnique Slug Filter

Unique_Slug_Filter

Class Unique_Slug_Filter

Responsible for filtering the unique slug proposed for a product, enforcing uniqueness per channel but not globally

  • Full name: \BigCommerce\Post_Types\Product\Unique_Slug_Filter

Methods

get_unique_slug

public get_unique_slug(string $slug, int $post_id, string $post_status, string $post_type, int $post_parent, string $original_slug): string

Parameters:

ParameterTypeDescription
$slugstringThe post slug, as deduplicated by WP.
$post_idintPost ID.
$post_statusstringThe post status.
$post_typestringPost type.
$post_parentintPost parent ID
$original_slugstringThe original post slug.


Automatically generated on 2025-01-21