wpdatatables_before_save_settings

Contents

Description

This filter is applied to the contents of the $_POST array when the “Apply” button is pressed in the admin panel, and before the actual saving is done.

Usage

add_filter( 'wpdatatables_before_save_settings', 'before_save_settings' );

Parameters

  • $_POST[‘settings’] array
    Array of values.

Examples

// Callback function for the wpdatatables_before_save_settings filter hook
function before_save_settings( $_POST ) { 
    // Your code
}

add_action( 'wpdatatables_before_save_settings', 'before_save_settings');