Actions/Filters for Developers

Tin Canny Reporting for LearnDash provides the hooks below for advanced developers to use when developing custom functionality that integrates with the plugin.  No support is provided for the use of these filters.

/**
 * Minimum capability required for a logged-in user to view Tin Canny and User reports. Default: manage_options
 */
add_filter( 'uo_tincanny_reporting_capability', function( $capability ){
    $capability = 'group_leader';
   return $capability;
} );
/**
 * Minimum capability required for a logged-in user to view Tin Canny and User reports. Default: manage_options
 */
add_filter( 'tincanny_view_all_reports_permission', function( $capability ){
   $capability = 'group_leader';
   return $capability;
} );
/**
* Minimum capability required for a logged-in user to view Tin Canny and User reports. Default: manage_options
*/
add_filter( 'tincanny_can_get_data', function( $capability ){
   $capability = 'group_leader';
   return $capability;
} );
0 replies

Comments/Questions

Please note that this is not a support forum. If you are experiencing issues on your site, please open a support ticket instead. Site-specific support questions submitted as comments will be unanswered.

Leave a Reply

Your email address will not be published. Required fields are marked *