Filter (wpda_wpdataaccess_prepare) to add custom options to a publication
Filter wpda_wpdataaccess_prepare allows developers to add their own jQuery DataTable options to a publication. This code is used to initialize a publication.
More information about jQuery DataTables options…
function my_publication_logic( $html, $schema_name, $table_name, $pub_id, $columns, $table_settings ) {
// Your code goes here...
}
add_filter( 'wpda_wpdataaccess_prepare', 'my_publication_logic', 10, 6 );
$html
HTML code (may include JavaScript code)
$schema_name
Database schema name (database name)
$table_name
Database table name
$pub_id
Publication ID
$columns
Table columns
$table_settings
Table settings as defined in the Data Explorer