Skip to content

Instantly share code, notes, and snippets.

@michael-cannon
Created September 9, 2013 01:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michael-cannon/6490317 to your computer and use it in GitHub Desktop.
Save michael-cannon/6490317 to your computer and use it in GitHub Desktop.
<?php
add_filter( 'cbqe_quick_scripts_bulk', array( $this, 'scripts_bulk' ), 10, 6 );
public function scripts_bulk( $scripts_bulk, $post_type, $column_name, $field_name, $field_type, $field_name_var ) {
switch ( $field_type ) {
case 'date':
$scripts_bulk[ $column_name ] = "'{$field_name}': bulk_row.find( 'input[name={$field_name}]' ).val()";
break;
}
return $scripts_bulk;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment