Member's only pages in wordpress, for users with a related membership
CiviCRM WordPress Member Sync functions similarly to CiviMember Role sync. It provides UI to add association rule to sync membership type with wp role. There is no special setting available for this plugin to include only primary or secondary member. There is a setting when to remove from role.

Add association Member sync rule in your site for the membership type and based on wp roles design your membership section or forms.

Thanks

Pradeep