/ Knowledge Base /Filters/SureMembers Filters

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.

Since this document doesn’t contain a tutorial for using these filter hooks, you can check this document for more details.

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 restrict content

Parameter: $selection_options


Edit Access Group Link

suremembers_get_access_groups
array of argument to passed to get_posts to retrive access groups

Parameter: $args


Grant Creation Data

suremembers_grant_creation_data
array of arguments while granting access for first time

Parameter: $args


Access Status

suremembers_is_access_status_same
$response = bollean value wherether 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 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

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page

Remind me about SureMembers's HUGE Black Friday Sale

Scroll to Top