質問: array( 'label' => __( 'shipments', 'sage' ), 'description' => __( 'manage all shipments, sweepstakes and giveaways.', 'sage' ), 'labels' => $labels, 'supports' => array( 'revisions' ), 'taxonomies' => array( '' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-archive', 'show_in_admin_bar' => true, 'show_in_nav_menus' => false, 'can_export' => true, 'has_archive' => false, 'exclude_from_search' => true, 'publicly_queryable' => true, 'map_meta_cap' => true, 'capabilities' => array( 'edit_post' => 'edit_shipment', 'read_post' => 'read_shipment', 'read_posts' => 'read_shipments', 'delete_post' => 'delete_shipment', 'delete_posts' => 'delete_shipments', 'edit_posts' => 'edit_shipments', 'edit_others_posts' => 'edit_others_shipments', 'publish_posts' => 'publish_shipments', 'read_private_posts' => 'read_private_shipments', 'create_posts' => 'create_shipments', ), ); register_post_type( 'shipment', $args ); } add_action( 'init', 'shipment_post_type', 0 );
回答: あなたのロールオブジェクトには、あなたはそれが実際に 'create_shipments'と言うべきところで 'create_shipment'という機能があります。あなたがその機能を追加しているところはどこでもあなたのコードに 's'が欠けているかもしれないようです。