In order to list Vendor Membership plans on any page or post, the marketplace administrator can make use of the membership plans shortcode. The shortcode can be used as it is without any attributes to customize it, this will display all available memberships with all the data associated with it.
[wcv_membership_plans] – Display all membership plans with details for each membership.
Add the shortcode
[wcv_membership_plans] to any page or post and save. If you preview the page/post, you should see the results of the shortcode displayed like this:
[wcvm_membership_plans show_membership_title="yes" show_membership_content='yes' show_product_limit='yes' show_commission='yes' show_files_count_limit='yes' show_disk_usage_limit='yes' exclude_membership='ID1,ID2,...']
You can choose to hide specific membership details by adding the shortcode attributes like in shortcode snippet above, add any of the attributes depending on what you want to hide, but replace
yes with a
no. Here is what each of them do.
|show_membership_title||Show or hide the membership title.|
|show_membership_content||Show or hide the description of the membership|
|show_product_limit||Show or hide the product limit|
|show_commission||Show or hide the commission for each limit|
|show_file_count_limit||Show or hide the file count limit.|
|show_disk_usage_limit||Show the disk usage limit|
All these parameters have a default value of
yes which means you only need to add them if you want to change the value to
no which will hide the corresponding details as a result.
Excluding memberships from the list
If you wish specific memberships not to be displayed by the shortcode, you can add the
exclude_memberships attribute with a comma-separated list of product IDs of the memberships you wish to exclude,
You can find the membership ID by going to ‘Products > All Products’ menu on Admin Dashboard. On the products list, hover over the title of the product and you will see its ID like in the screenshot below.
Do this for all the membership products you wish to exclude and add the IDs to the
exclude_memberships attribute like this: