1. Home
  2. Knowledge Base
  3. Tin Canny Reporting for LearnDash
  4. 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.

add_filter( 'uo_tincanny_reporting_capability', function( $capability ){
   // Here check current user role and other conditions
    $capability = 'read';
   return $capability;
} );
add_filter( 'tincanny_view_all_reports_permission', function( $capability ){
   // Here check current user role and other conditions
   $capability = true;
   return $capability;
} );
add_filter( 'tincanny_can_get_data', function( $capability ){
   // Here check current user role and other conditions
   $capability = 'read';
   return $capability;
} );

Was this article helpful?

0 replies

Comments/Questions

Please note that this is not an official support channel and questions/comments may go unanswered.
To request support, log in to your account and click Submit a Request.

Leave a Reply

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