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;
} );

Leave a Reply

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

Scroll to Top