Filter: mc_set_primary_category

apply_filters( 'mc_set_primary_category', $primary, $cats, $post ) → {int}

Filter primary category decision. Primary category is normally the alphabetically first listed category or the first selected private category.

Parameters:
Name Type Description
$primary int

Primary category ID.

$cats array

All selected categories.

$post array

Submitted query.

Source:
Returns:
Type
int