apply_filters( 'sensei_filter_module_terms_by_owner', $user_terms, $terms, $user_id ) → {Array.<WP_Term>}
Filters the module terms when ownership is being checked for them.
Parameters:
Name | Type | Description |
---|---|---|
$user_terms |
Array.<WP_Term> | The terms after applying the filter by owner. |
$terms |
Array.<WP_Term> | Array.<int> | The original terms before the filtering was applied. |
$user_id |
int | The user ID to check for ownership. |
- Since:
- 4.9.0
- Source:
Returns:
The final list of terms that must be considered as owner by the given user ID.
- Type
- Array.<WP_Term>