rcp_get_term_restrictions()

Returns an array of restrictions on a given term (if any).

Note: This doesn't check if the user meets the requirements, it just returns the restriction settings.

Parameters:

  • $term_id (int) - ID of the term to check.

Return values:

  • array - Array of restrictions applied to the term.