You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently added a custom optional permission to the opt-in screen.
functionadd_collectspam_permission( $permissions ) {
$permissions['collectspam'] = array(
'icon-class' => 'dashicons dashicons-cloud-upload',
'label' => kmcf7ms_fs()->get_text_inline( 'Collect Spam Info', 'collectspam' ),
'desc' => kmcf7ms_fs()->get_text_inline( "Collect spam words, spam emails and messages blocked", 'permissions-collectspam' ),
'priority' => 16,
'optional' => true,
'default' => true,
'tooltip' => kmcf7ms_fs()->get_text_inline( "We would like to collect only the spam words and emails saved in the plugin settings and only the messages blocked by this plugin on a regular basis", 'permissions-collectspam' ),
);
return$permissions;
}
I want to check if the permission was accepted by the user. Currently, the Freemius class does not provide a method to check if a custom optional permission has been accepted
Describe the solution you'd like
Make it possible to get an instance of the FS_Permission_Manager class from the Freemius class
Describe alternatives you've considered
Manually getting an instance of the FS_Permission_Manager class
馃殌 feature request
Description
I recently added a custom optional permission to the opt-in screen.
I want to check if the permission was accepted by the user. Currently, the Freemius class does not provide a method to check if a custom optional permission has been accepted
Describe the solution you'd like
Make it possible to get an instance of the FS_Permission_Manager class from the Freemius class
Describe alternatives you've considered
Manually getting an instance of the FS_Permission_Manager class
But does not seem to work. It always returns
false
The text was updated successfully, but these errors were encountered: