๋ฒ๊ทธ ์ค๋ช
ํฌ๋๋ฅผ ํตํด ํ์ ๋ฉ๋ด ํญ๋ชฉ์ด ์๋ ๊ด๋ฆฌ ๋ฉ๋ด๋ฅผ ๋ง๋๋ ๋ฐฉ๋ฒ์ ์ดํด๋ณด๊ณ ๋ฒ๊ทธ๊ฐ ๋ ์ ์๋ ๋ช ๊ฐ์ง ๊ธฐ๋ฅ์ ๋ฐ๊ฒฌํ์ง๋ง ์๋ํ ๋๋ก ์๋ํ๋์ง ํ์คํ์ง ์์ต๋๋ค.
์ค๋ฅ 1. ๊ธฐ๋ณธ ๊ด๋ฆฌ ๋ฉ๋ด(์์ ์์)์ ํ์๋๋๋ก ์ค์ ๋ ํฌ๋ ์ค์ ํ์ด์ง์ ํฌ๋ CPT๋ฅผ ํ ๋นํ๋ฉด ํด๋น ํฌ๋ ์ค์ ํ์ด์ง์ ๋ชจ๋ ์ต์ ์ ๋ฌด์ํ๊ณ CPT๋ง ํ์ํฉ๋๋ค.
์ค๋ฅ 2. ๋ค๋ฅธ ํฌ๋ ์ค์ ํ์ด์ง์ ํ์ ๋ฉ๋ด๋ก ์ค์ ๋ ํฌ๋ ์ค์ ํ์ด์ง์ ํฌ๋ CPT๋ฅผ ํ ๋นํ๋ฉด ์๋ฌด ์์ ๋ ์ํํ์ง ์์ต๋๋ค.
add_submenu_page
์ฌ์ฉํ์ฌ ํ์ ๋ฉ๋ด ํ์ด์ง๋ฅผ ์ถ๊ฐํ ์ ์๋ค๋ ๊ฒ์ ์๊ณ ์์ต๋๋ค. ์ด๋ ๊ฒ ํ๋ฉด ์ด๋ฌํ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ ์ ์์ง๋ง ์ด๊ฒ์ด ์๋ํ ๋๋ก ์๋ํ๋์ง ํ์ ํ ์ ์์์ต๋๋ค.
์ฌํํ๊ธฐ ์ํด
๋์์ ์ฌํํ๋ ๋จ๊ณ:
Organization
๋ผ๋ ์ Pods ์ค์ ํ์ด์ง๋ฅผ ๋ง๋ญ๋๋ค.pods-settings-organization
Brand
๋ผ๋ ์ Pod CPT๋ฅผ ๋ง๋ญ๋๋ค.pods-settings-organization
ํ๊ณ ์ฒซ ๋ฒ์งธ ์ค๋ฅ๋ฅผ ๊ด์ฐฐํฉ๋๋ค.pods-settings-company
ํ๊ณ ๋ ๋ฒ์งธ ์ค๋ฅ๋ฅผ ๊ด์ฐฐํฉ๋๋ค.์์๋๋ ํ๋
์ค๋ฅ 1 ์ ๊ฒฝ์ฐ Brand
CPT๊ฐ Organization
Pods ์ค์ ํ์ด์ง์ ํ์ ๋ฉ๋ด ํ์ด์ง๋ก ์ถ๊ฐ๋ ๊ฒ์ผ๋ก ์์ํฉ๋๋ค.
CPT๊ฐ ํฌ๋ ์ค์ ํ์ด์ง๋ฅผ ๋ฎ์ด์ฐ๋ฉด ์ค๋ฅ 2 ์ ๊ฒฝ์ฐ Brand
CPT๊ฐ Company
ํฌ๋ ์ค์ ํ์ด์ง๋ฅผ ๋ฎ์ด์จ์ผ ํฉ๋๋ค.
์คํฌ๋ฆฐ์ท
Organization
Brand
CPT ์์ ๋ฉ๋ด ID๊ฐ pods-settings-organization
์ค์ ๋ Organization
ํฌ๋ ์ค์ ํ์ด์ง ๋ณด๊ธฐ
Brand
CPT ์์ ๋ฉ๋ด ID๊ฐ pods-settings-company
์ค์ ๋ Company
ํฌ๋ ์ค์ ํ์ด์ง ๋ณด๊ธฐ
์คํ ์ค์ธ Pod ๋ฒ์ ์ ์ ๊ณตํ์ธ์.
2.7.15
๋ฒ์ : 5.2.3
์ฌ์ดํธ ์ธ์ด: en_US
user_language: en_US
์๊ตฌ ๋งํฌ: /blog/%year%/%monthnum%/%day%/%postname%/
https_status: ์ฐธ
user_registration: ๊ฑฐ์ง
default_comment_status: ์ด๊ธฐ
๋ค์ค ์ฌ์ดํธ: ์ฌ์ค
user_count: 3
์ฌ์ดํธ ์: 2
network_count: 1
dotorg_communication: ์ฌ์ค
์ด๋ฆ: ์๋
ํ์ธ์ ์๋ฆฌ๋ฉํฐ
๋ฒ์ : 2.2.1
์ ์: Elementor ํ
Author_website: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
parent_theme: ์์
theme_features: ๋ฉ๋ด, ํฌ์คํธ ์ธ๋ค์ผ, ์๋ ํผ๋ ๋งํฌ, ์ ๋ชฉ ํ๊ทธ, html5, ์ฌ์ฉ์ ์ ์ ๋ก๊ณ , ํธ์ง๊ธฐ ์คํ์ผ, ์ฐ์ปค๋จธ์ค, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product- ๊ฐค๋ฌ๋ฆฌ ์ฌ๋ผ์ด๋, ์์ ฏ
theme_path: /path/to/site/wp-content/themes/hello-elementor
Twenty Nineteen: ๋ฒ์ : 1.4, ์์ฑ์: WordPress ํ
Twenty Seventeen: ๋ฒ์ : 2.2, ์์ฑ์: WordPress ํ
Twenty Sixteen: ๋ฒ์ : 2.0, ์์ฑ์: WordPress ํ
Advanced Custom Fields PRO: ๋ฒ์ : 5.8.0, ์์ฑ์: Elliot Condon(์ต์ ๋ฒ์ : 5.8.4)
์ค์ ์์ ํ๋ ํธ: ๋ฒ์ : 1.13.11, ์์ฑ์: Daniel Schneider
๋ฐฐ๊ธ์ฌ: ๋ฒ์ : 1.5.0, ์ ์: 10up Inc.
Elementor: ๋ฒ์ : 2.7.3, ์์ฑ์: Elementor.com
Pods - ์ฌ์ฉ์ ์ง์ ์ฝํ
์ธ ์ ํ ๋ฐ ํ๋: ๋ฒ์ : 2.7.15, ์์ฑ์: Pods Framework Team
QuadMenu: ๋ฒ์ : 1.9.0, ์์ฑ์: Mega Menu (์ต์ ๋ฒ์ : 1.9.3)
Elementor Pro: ๋ฒ์ : 2.6.5, ์์ฑ์: Elementor.com(์ต์ ๋ฒ์ : 2.7.1)
์ค๋ ฅ ํํ: ๋ฒ์ : 2.4.9, ์์ฑ์: ๋ก์ผ ์ง๋์ด์ค
Gravity Forms ์ฌ์ฉ์ ๋ฑ๋ก ์ถ๊ฐ ๊ธฐ๋ฅ: ๋ฒ์ : 4.1, ์์ฑ์: ๋ก์ผ ์ง๋์ด์ค
HT Mega - Elementor Page Builder์ฉ ์ฑ์๋ฃจํธ ์ ๋์จ: ๋ฒ์ : 1.2.3, ์์ฑ์: HasThemes
Jetpack by WordPress.com: ๋ฒ์ : 7.7.2, ์์ฑ์: Automattic
Google ์ฌ์ดํธ ํคํธ: ๋ฒ์ : 1.0.0-beta.1.0.6, ์์ฑ์: Google
์คํธ๋ฆผ: ๋ฒ์ : 3.4.1, ์์ฑ์: XWP(์ต์ ๋ฒ์ : 3.4.2)
Slack์ผ๋ก ์คํธ๋ฆฌ๋ฐ: ๋ฒ์ : 0.0.1, ์์ฑ์: SMILE
์ฌ์ฉ์ ์ ํ: ๋ฒ์ : 1.5.2, ์์ฑ์: John Blackbourn ๋ฐ ๊ธฐ๊ณ ์
image_editor: WP_Image_Editor_GD
imagick_module_version: ์ฌ์ฉํ ์ ์์
imagemagick_version: ์ฌ์ฉํ ์ ์์
gd_๋ฒ์ : 2.2.5
Ghostscript_version: ์ฌ์ฉํ ์ ์์
server_architecture: Linux 4.15.0-64-์ผ๋ฐ x86_64
httpd_software: nginx/1.14.0
php_version: 7.2.19-0ubuntu0.18.04.2 64๋นํธ
php_sapi: fpm-fcgi
max_input_variables: 4000
time_limit: 30
memory_limit: 256M
max_input_time: 60
upload_max_size: 400M
php_post_max_size: 400M
curl_version: 7.58.0 OpenSSL/1.1.1
์ํธ์ : ๊ฑฐ์ง
imagick_availability: ๊ฑฐ์ง
htaccess_extra_rules: ์ฐธ
ํ์ฅ์: mysqli
์๋ฒ ๋ฒ์ : 5.7.27-0ubuntu0.18.04.1
client_version: mysqlnd 5.0.12-dev - 20150407 - $Id: 3591daad22de08524295e1bd073aceeff11e6579 $
WP_HOME: ์ ์๋์ง ์์
WP_SITEURL: ์ ์๋์ง ์์
WP_CONTENT_DIR: /๊ฒฝ๋ก/to/์ฌ์ดํธ/wp-content
WP_PLUGIN_DIR: /path/to/site/wp-content/plugins
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: ๊ฑฐ์ง
WP_DEBUG_DISPLAY: ์ฐธ
WP_DEBUG_LOG: ๊ฑฐ์ง
SCRIPT_DEBUG: ๊ฑฐ์ง
WP_CACHE: ๊ฑฐ์ง
CONCATENATE_SCRIPTS: ์ ์๋์ง ์์
COMPRESS_SCRIPTS: ์ ์๋์ง ์์
COMPRESS_CSS: ์ ์๋์ง ์์
WP_LOCAL_DEV: ์ ์๋์ง ์์
์๋ํ๋ ์ค: ์ฐ๊ธฐ ๊ฐ๋ฅ
wp-content: ์ฐ๊ธฐ ๊ฐ๋ฅ
์
๋ก๋: ์ฐ๊ธฐ ๊ฐ๋ฅ
ํ๋ฌ๊ทธ์ธ: ์ฐ๊ธฐ ๊ฐ๋ฅ
ํ
๋ง: ์ฐ๊ธฐ ๊ฐ๋ฅ
ํฌ๋ ์๋ฒ ์ํํธ์จ์ด: nginx/1.14.0
pods-user-agent: Mozilla/5.0(Windows NT 10.0, Win64, x64) AppleWebKit/537.36(Gecko์ ๊ฐ์ KHTML) Chrome/73.0.3683.86 Safari/537.36
ํฌ๋ ์ธ์
์ ์ฅ ๊ฒฝ๋ก: /var/lib/php/sessions
pods-session-save-path-exists: ์
pods-session-save-path-writable: ์
ํฌ๋ ์ธ์
์ต๋ ์๋ช
: 1440
pods-opcode-cache-apc: ์
pods-opcode-cache-memcached: ์๋์
pods-opcode-cache-opcache: ์
pods-opcode-cache-redis: ์๋์
pods-object-cache-apc: ์
pods-object-cache-apcu: ์
pods-object-cache-memcache: ์๋์
pods-object-cache-memcached: ์๋์
pods-object-cache-redis: ์๋์
ํฌ๋ ๋ฉ๋ชจ๋ฆฌ ํ์ฌ ์ฌ์ฉ๋: 27.560M
pods-memory-current-usage-real: 2.000M
ํฌ๋ ๋คํธ์ํฌ ์ ์ฒด: ์
ํฌ๋ ์ค์น ์์น: /path/to/site/wp-content/plugins/pods/
ํฌ๋ ๊ฐ๋ฐ์: ์๋์
pods-tableless-mode: ์๋์
ํฌ๋ ๋ผ์ดํธ ๋ชจ๋: ์๋์
pods-strict: ์๋์
pods-allow-deprecated: ์
pods-api-cache: ์
`
{"meta":{"version":"2.7.15","build":1569857386},"pods":{"3030":{"id":3030,"name":"sm_brand","label":"Brands","description":"","type":"post_type","storage":"meta","object":"","alias":"","fields":[],"show_in_menu":"1","_elementor_controls_usage":[],"label_singular":"Brand","public":"1","show_ui":"1","supports_title":"1","supports_editor":"1","publicly_queryable":"1","exclude_from_search":"0","capability_type":"post","capability_type_custom":"regular_brand","capability_type_extra":"1","has_archive":"0","hierarchical":"0","rewrite":"1","rewrite_with_front":"1","rewrite_feeds":"0","rewrite_pages":"1","query_var":"1","can_export":"1","default_status":"draft","supports_author":"0","supports_thumbnail":"0","supports_excerpt":"0","supports_trackbacks":"0","supports_custom_fields":"0","supports_comments":"0","supports_revisions":"0","supports_page_attributes":"0","supports_post_formats":"0","built_in_taxonomies_category":"0","built_in_taxonomies_elementor_library_category":"0","built_in_taxonomies_elementor_library_type":"0","built_in_taxonomies_link_category":"0","built_in_taxonomies_post_tag":"0","menu_position":"0","show_in_nav_menus":"1","show_in_admin_bar":"1","pfat_enable":"0","pfat_run_outside_loop":"0","pfat_append_single":"append","pfat_filter_single":"the_content","pfat_append_archive":"append","pfat_filter_archive":"the_content","rest_enable":"0","read_all":"0","write_all":"0","menu_location_custom":"pods-settings-company"},"3078":{"id":3078,"name":"company","label":"Company","description":"","type":"settings","storage":"none","object":"","alias":"","fields":[],"show_in_menu":1,"_elementor_controls_usage":[],"menu_name":"Company","menu_location":"submenu","ui_style":"post_type","menu_location_custom":"pods-settings-organization","menu_position":"0"},"3076":{"id":3076,"name":"organization","label":"Organization","description":"","type":"settings","storage":"none","object":"","alias":"","fields":{"test-field":{"id":3077,"name":"test-field","label":"Test Field","description":"","help":"","class":"","type":"boolean","weight":0,"pick_object":"","pick_val":"","sister_id":"","_elementor_controls_usage":[],"required":"0","pick_post_status":["publish"],"boolean_format_type":"checkbox","boolean_yes_label":"Yes","boolean_no_label":"No","admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0"}},"show_in_menu":1,"_elementor_controls_usage":[],"menu_name":"Organization","menu_location":"top","ui_style":"settings","menu_position":"30"}}}
๊ฐ๋ฅํ ํด๊ฒฐ ๋ฐฉ๋ฒ
add_submenu_page
ํจ์ ์ฌ์ฉ
Issue-Label Bot์ 0.78์ ์ ๋ขฐ๋๋ก ์ด ๋ฌธ์ ์ Type: Bug
๋ ์ด๋ธ์ ์๋์ผ๋ก ์ ์ฉํฉ๋๋ค. ์ด ๋๊ธ์ :thumbsup: ๋๋ :thumbsdown:์ผ๋ก ํ์ํ์ฌ ๋ด ํผ๋๋ฐฑ์ ์ ๊ณตํ์ธ์!
๋งํฌ: ์ด ๋ด์ ๋ํ ์ฑ ํํ์ด์ง , ๋์๋ณด๋ ๋ฐ ์ฝ๋ .
์๋ ํ์ธ์ @Kpudlo
๋ฌธ์ ๋ฅผ ์ฐพ์๊ณ ์ด๊ฒ์ WordPress ์ฝ์ด์ ์ ํ ์ฌํญ์ธ ๊ฒ ๊ฐ์ต๋๋ค.
https://codex.wordpress.org/Function_Reference/register_post_type#show_in_menu ์ฐธ์กฐ
์์ ์ฐ์ ์์๋ฅผ ํ์ธํ๊ฒ ์ต๋๋ค. ํ์ฌ 99๋ก ์ค์ ๋์ด ์์ผ๋ฏ๋ก ๊ทธ ์ด์ ๊ฐ ์์ ๊ฒ์ ๋๋ค.
์๋ ํ์ธ์ @JoryHogeveen
์ค์น ์ค ํ๋์์ ์ฐ์ ์์๋ฅผ 9์์ 99๋ก ๋ณ๊ฒฝํ๊ณ ์๋ฃ๋๋ฉด ์๋ํจ์ ํ์ธํ์ต๋๋ค. ๋์ ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค!
์๋ ค ์ค์ ๊ณ ๋ง์!