FEATURE Extending post types support for post type recherche
This commit is contained in:
parent
49980e322f
commit
9c9a49099d
|
|
@ -104,8 +104,8 @@ function carhop_create_posttype()
|
|||
'show_in_rest' => true,
|
||||
'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.513 2.69841H17.4805C17.2208 2.69841 16.9935 2.92064 16.9935 3.1746V14.9524C16.9935 15.4603 16.5714 15.873 16.0519 15.873H10.4026V15.0794C10.4026 14.8254 10.1753 14.6032 9.91558 14.6032H7.31818C7.18831 14.6032 7.05844 14.6667 6.96104 14.7302C6.86364 14.7937 6.83117 14.9524 6.83117 15.0794V15.873H4.91558C4.46104 15.873 4.07143 15.619 3.94156 15.1746C3.94156 14.9841 3.94156 14.7619 4.1039 14.6032C4.3961 14.3175 4.78571 14.1587 5.20779 14.1587H14.8506C15.7273 14.1587 16.4091 13.4603 16.4091 12.6349V2.06349C16.4091 0.920635 15.4675 0 14.2987 0H5.11039C3.94156 0 3 0.920635 3 2.06349V15.3651C3.22727 16.2222 4.00649 16.8571 4.94805 16.8254H6.86364V19.5238C6.86364 19.7143 6.99351 19.873 7.15584 19.9683C7.35065 20.0317 7.54545 19.9683 7.67532 19.873L8.64935 18.9841L9.62338 19.873C9.72078 19.9683 9.85065 20 9.94805 20H10.1429C10.3377 19.9365 10.4351 19.746 10.4351 19.5556V16.8571H16.0844C17.1558 16.8571 18 16.0317 18 14.9841V3.1746C18 2.92064 17.7727 2.69841 17.513 2.69841ZM10.1104 10.5079C10.1104 10.7619 9.88312 10.9841 9.62338 10.9841C9.36364 10.9841 9.13636 10.7619 9.13636 10.5079V5.77778C9.13636 5.52381 9.36364 5.30159 9.62338 5.30159C9.88312 5.30159 10.1104 5.52381 10.1104 5.77778V10.5079ZM9.59091 3.1746H9.62338C9.91558 3.1746 10.1429 3.36508 10.2403 3.61905C10.3377 3.87302 10.2403 4.15873 10.0779 4.34921C9.91558 4.53968 9.59091 4.60317 9.33117 4.47619C9.07143 4.38095 8.90909 4.12698 8.90909 3.84127C8.90909 3.55556 9.23377 3.1746 9.59091 3.1746Z" fill="#9BA2A9"/></svg>'),
|
||||
'menu_position' => 4,
|
||||
'supports' => array('title', 'custom-fields'),
|
||||
'taxonomies' => array('type'),
|
||||
'taxonomies' => array('type', 'etiquettes'),
|
||||
'supports' => array('title', 'custom-fields', 'editor', 'thumbnail'),
|
||||
)
|
||||
);
|
||||
register_post_type(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user