Please tell me. my table code: [table id = 1 /]
I would add it to where.
`function tablepress_datatables_inverted_filter( $commands ) {
// Only use this functionality on these pages:
if ( ! is_page( array( ‘page-slug-1’, ‘page-slug-1’ ) ) ) {
return $commands;
}
$commands = <<<JS
$.fn.dataTableExt.afnFiltering.push(
function( settings, data, dataIndex ) {
return ” !== settings.oPreviousSearch.sSearch;
}
);
{$commands}
$( ‘.dataTables_filter’ ).find( ‘input’ ).on( ‘keyup’, function() {
$( ‘.dataTables_wrapper’ ).find( ‘.tablepress’ ).toggle( ” !== $( this ).val() );
} ).keyup();
JS;
return $commands;
-
This reply was modified 6 years, 10 months ago by
kutaahya.