- How to restrict access to your entire website
- How to Use the Centralized Rules System
- How to Restrict a Particular Content on a Page Using SureMembers?
- How to manually add users to access groups
- Creating a Yearly Membership plan using SureCart and SureMembers
- How to set up Login Restrictions
- Menu Item Visibility
- How to redirect users at login or logout
- How to secure digital downloads
SureMembers Filters
This is a SureMembers document for developers. Thus, if you want to extend or customize SureMembers, this document contains a list of available filter hooks.
You can refer to this document for more information on using filter hooks.
- Language Directory
- Edit Access Group
- Excluded Roles
- Access Group edit Metadata
- Selection Options
- Edit Access Group Link
- Grant Creation Data
- Access Status
- Retrieve Restricted Post Types
- Exclude Post Types from SureMembers Restriction
- Get Meta Values
- Global Settings
- Redirection Post ID
- WooCommerce Grant Status
- WooCommerce Revoke Status
- Woo Subscriptions Grant Status
- Woo Subscriptions Revoke Status
Language Directory
suremembers_languages_directory
Provides the default path/languages for .po files. It can be used to update the default directory name.
Parameter: $lang_dir
Edit Access Group
suremembers_edit_access_group_url_args
Array of query arguments required to build edit access group link
Parameter: $args
Excluded Roles
suremembers_settings_excluded_roles
Array of user roles to be excluded in the settings page for admin UI restriction. Default value: [‘administrator’ => ‘Administrator]
Parameter: $args
Access Group edit Metadata
suremembers_access_group_edit_metadata
$include = include rules saved in Access Groups, $post_data = complete $_POST data while saving accesss group
Parameter: $include, $post_data
Selection Options
suremembers_location_selection_options
Array of selected options in access groups to restrict content
Parameter: $selection_options
Edit Access Group Link
suremembers_get_access_groups
Array of argument to passed to get_posts to retrieve access groups
Parameter: $args
Grant Creation Data
suremembers_grant_creation_data
Array of arguments while granting access for the first time
Parameter: $args
Access Status
suremembers_is_access_status_same
$response = boolean value whether the current requested operation is same as existing status, $current status = string current status of access ( grant / revoke), $status_to_check = string, status to be applied by the current operation
Parameter: $response, $current_status, $status_to_check
Retrieve Restricted Post Types
suremembers_restricted_post_types
Array arguments to be passed to retrieve post types to be restricted by SureMembers
Parameter: $args
Exclude Post Types from SureMembers Restriction
suremembers_get_post_types_excludes
Array of post types to be excluded from SureMembers restriction
Parameter: $args
Get Meta Values
suremembers_get_content_meta_values
$meta_args = array of meta values as per current content. $q_obj = query object of current content
Parameter: $meta_args, $q_obj
Global Settings
suremembers_global_settings
array of all settings data
Parameter: $args
Redirection Post ID
suremembers_filter_redirection_post_id
int current post id
Parameter: $post_id
WooCommerce Grant Status
suremembers_wc_grant_status
$grant_status = array of status which invokes grant access, $order_id = current WooCommerce order id
Parameter: $grant_status, $order_id
WooCommerce Revoke Status
suremembers_wc_revoke_status
$revoke_status = array of status which invokes revoke access, $order_id = current WooCommerce order id
Parameter: $revoke_status, $order_id
Woo Subscriptions Grant Status
suremembers_wcs_grant_status
$grant_status = array of status which invokes grant access, $order_id = current WooCommerce subscription id
Parameter: $grant_status, $subcription_id
Woo Subscriptions Revoke Status
suremembers_wcs_revoke_status
$grant_status = array of status which invokes revoke access, $order_id = current WooCommerce subscription id
Parameter: $revoke_status, $subscription_id
If you have any more requirements, feel free to open a support ticket below. We’re always here to help!
We don't respond to the article feedback, we use it to improve our support content.