Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion example.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ function yourprefix_init() {
),
'list' => array(
// 'per_page' => 40 // This will force the per page initial value
'parent_slug' => '', // Add the new fake-CPT to the root
// The columns arg is a shortcut of the manage_columns and manage_sortable_columns commonly required hooks
'columns' => array(
'title' => array(
Expand Down Expand Up @@ -460,4 +461,4 @@ function yourprefix_common_get_object_meta( $object, $field_name, $request ) {
// Update object meta callback
function yourprefix_common_update_object_meta( $value, $object, $field_name ) {
return ct_update_object_meta( $object[ 'id' ], $field_name, $value );
}
}