From 92086ea0ed4282c171f87584ba6dc172dc4ba1ad Mon Sep 17 00:00:00 2001 From: Mirco Babini Date: Fri, 3 Mar 2023 22:46:41 +0100 Subject: [PATCH] Permit to show the new CPT into the menu --- example.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example.php b/example.php index 0764128..7f39fd2 100644 --- a/example.php +++ b/example.php @@ -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( @@ -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 ); -} \ No newline at end of file +}