wpdatatables_before_render_chart

Contents

Description

This action is executed before a chart starts to render.

Usage

add_action( 'wpdatatables_before_render_chart', 'before_render_chart');

Parameters

  • $tableId integer

    Identifier of the chart from MySQL.

Examples

// Callback function for the wpdatatables_before_render_chart action hook
function before_render_chart( $chartId ) { 
   // Check for specific chart id
   if ( $chartId == 1) { 
     // Your code
   } 
}

add_action( 'wpdatatables_before_render_chart', 'before_render_chart');