Advertisement
IlyaOlchikov

compare card and page

May 30th, 2019
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.60 KB | None | 0 0
  1. WP_Post_Type Object
  2. (
  3.     [name] => card
  4.     [label] => Card
  5.     [labels] => stdClass Object
  6.         (
  7.             [name] => Card
  8.             [singular_name] => Card
  9.             [add_new] => Добавить Card
  10.             [add_new_item] => Добавить Card
  11.             [edit_item] => Редактировать Card
  12.             [new_item] => Новая страница
  13.             [view_item] => Просмотреть
  14.             [view_items] => Просмотр страниц
  15.             [search_items] => Найти Card
  16.             [not_found] => Не найдено
  17.             [not_found_in_trash] => Не найдено в корзине
  18.             [parent_item_colon] => Родительский:
  19.             [all_items] => Все Cards
  20.             [archives] => Все Cards
  21.             [attributes] => Атрибуты страницы
  22.             [insert_into_item] => Вставить в страницу
  23.             [uploaded_to_this_item] => Загруженные для этой страницы
  24.             [featured_image] => Изображение страницы
  25.             [set_featured_image] => Установить изображение страницы
  26.             [remove_featured_image] => Удалить изображение страницы
  27.             [use_featured_image] => Использовать как изображение страницы
  28.             [filter_items_list] => Фильтровать список страниц
  29.             [items_list_navigation] => Навигация по списку страниц
  30.             [items_list] => Список страниц
  31.             [item_published] => Страница опубликована.
  32.             [item_published_privately] => Страница опубликована как личная.
  33.             [item_reverted_to_draft] => Страница возвращена в черновики.
  34.             [item_scheduled] => Страница запланирована к публикации.
  35.             [item_updated] => Страница обновлена.
  36.             [menu_name] => Cards
  37.             [update_item] => Обновить Card
  38.             [name_admin_bar] => Card
  39.         )
  40.  
  41.     [description] =>
  42.     [public] => 1
  43.     [hierarchical] => 1
  44.     [exclude_from_search] =>
  45.     [publicly_queryable] => 1
  46.     [show_ui] => 1
  47.     [show_in_menu] => 1
  48.     [show_in_nav_menus] => 1
  49.     [show_in_admin_bar] => 1
  50.     [menu_position] => 5
  51.     [menu_icon] => dashicons-book
  52.     [capability_type] => card
  53.     [map_meta_cap] => 1
  54.     [register_meta_box_cb] =>
  55.     [taxonomies] => Array
  56.         (
  57.         )
  58.  
  59.     [has_archive] =>
  60.     [query_var] => card
  61.     [can_export] => 1
  62.     [delete_with_user] => 1
  63.     [_builtin] => 1
  64.     [_edit_link] => post.php?post=%d
  65.     [cap] => Array
  66.         (
  67.             [edit_post] => edit_card
  68.             [read_post] => read_card
  69.             [delete_post] => delete_card
  70.             [edit_posts] => edit_cards
  71.             [edit_others_posts] => edit_others_cards
  72.             [publish_posts] => publish_cards
  73.             [read_private_posts] => read_private_cards
  74.             [read] => read
  75.             [delete_posts] => delete_cards
  76.             [delete_private_posts] => delete_private_cards
  77.             [delete_published_posts] => delete_published_cards
  78.             [delete_others_posts] => delete_others_cards
  79.             [edit_private_posts] => edit_private_cards
  80.             [edit_published_posts] => edit_published_cards
  81.             [create_posts] => create_cards
  82.         )
  83.  
  84.     [rewrite] => Array
  85.         (
  86.             [slug] => card
  87.             [with_front] => 1
  88.             [pages] => 1
  89.             [feeds] =>
  90.             [ep_mask] => 1
  91.         )
  92.  
  93.     [show_in_rest] =>
  94.     [rest_base] => cards
  95.     [rest_controller_class] => WP_REST_Posts_Controller
  96. )
  97. WP_Post_Type Object
  98. (
  99.     [name] => page
  100.     [label] => Страницы
  101.     [labels] => stdClass Object
  102.         (
  103.             [name] => Страницы
  104.             [singular_name] => Страница
  105.             [add_new] => Добавить новую
  106.             [add_new_item] => Добавить страницу
  107.             [edit_item] => Редактировать страницу
  108.             [new_item] => Новая страница
  109.             [view_item] => Просмотреть страницу
  110.             [view_items] => Просмотр страниц
  111.             [search_items] => Поиск страниц
  112.             [not_found] => Страниц не найдено.
  113.             [not_found_in_trash] => Страниц в корзине не найдено.
  114.             [parent_item_colon] => Родительская страница:
  115.             [all_items] => Все страницы
  116.             [archives] => Архивы страниц
  117.             [attributes] => Атрибуты страницы
  118.             [insert_into_item] => Вставить в страницу
  119.             [uploaded_to_this_item] => Загруженные для этой страницы
  120.             [featured_image] => Изображение страницы
  121.             [set_featured_image] => Установить изображение страницы
  122.             [remove_featured_image] => Удалить изображение страницы
  123.             [use_featured_image] => Использовать как изображение страницы
  124.             [filter_items_list] => Фильтровать список страниц
  125.             [items_list_navigation] => Навигация по списку страниц
  126.             [items_list] => Список страниц
  127.             [item_published] => Страница опубликована.
  128.             [item_published_privately] => Страница опубликована как личная.
  129.             [item_reverted_to_draft] => Страница возвращена в черновики.
  130.             [item_scheduled] => Страница запланирована к публикации.
  131.             [item_updated] => Страница обновлена.
  132.             [menu_name] => Страницы
  133.             [name_admin_bar] => Страницу
  134.         )
  135.  
  136.     [description] =>
  137.     [public] => 1
  138.     [hierarchical] => 1
  139.     [exclude_from_search] =>
  140.     [publicly_queryable] =>
  141.     [show_ui] => 1
  142.     [show_in_menu] => 1
  143.     [show_in_nav_menus] => 1
  144.     [show_in_admin_bar] => 1
  145.     [menu_position] => 20
  146.     [menu_icon] =>
  147.     [capability_type] => page
  148.     [map_meta_cap] => 1
  149.     [register_meta_box_cb] =>
  150.     [taxonomies] => Array
  151.         (
  152.         )
  153.  
  154.     [has_archive] =>
  155.     [query_var] =>
  156.     [can_export] => 1
  157.     [delete_with_user] => 1
  158.     [_builtin] => 1
  159.     [_edit_link] => post.php?post=%d
  160.     [cap] => stdClass Object
  161.         (
  162.             [edit_post] => edit_page
  163.             [read_post] => read_page
  164.             [delete_post] => delete_page
  165.             [edit_posts] => edit_pages
  166.             [edit_others_posts] => edit_others_pages
  167.             [publish_posts] => publish_pages
  168.             [read_private_posts] => read_private_pages
  169.             [read] => read
  170.             [delete_posts] => delete_pages
  171.             [delete_private_posts] => delete_private_pages
  172.             [delete_published_posts] => delete_published_pages
  173.             [delete_others_posts] => delete_others_pages
  174.             [edit_private_posts] => edit_private_pages
  175.             [edit_published_posts] => edit_published_pages
  176.             [create_posts] => edit_pages
  177.         )
  178.  
  179.     [rewrite] =>
  180.     [show_in_rest] => 1
  181.     [rest_base] => pages
  182.     [rest_controller_class] => WP_REST_Posts_Controller
  183. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement