Skip to content

Instantly share code, notes, and snippets.

View Ngenaudet's full-sized avatar
🎯
Focusing

Niko Ngenaudet

🎯
Focusing
  • France
View GitHub Profile
@Ngenaudet
Ngenaudet / gist:ba86ceec17727c368265edac48c8333d
Created January 18, 2023 21:48 — forked from scribu/gist:906872
'price' sortable column example
<?php
// Register the column
function price_column_register( $columns ) {
$columns['price'] = __( 'Price', 'my-plugin' );
return $columns;
}
add_filter( 'manage_edit-post_columns', 'price_column_register' );