Skip to content

Conversation

@tanftw
Copy link
Contributor

@tanftw tanftw commented Aug 19, 2024

Register meta and unit test. Closes #1348.

@tanftw tanftw requested a review from rilwis August 19, 2024 03:55
Copy link
Member

@rilwis rilwis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A có comment mấy cái nhỏ để cleanup trước. E thêm type hint cho các params và return value (nếu có thể) nhé.

@tanftw
Copy link
Contributor Author

tanftw commented Aug 19, 2024

A có comment mấy cái nhỏ để cleanup trước. E thêm type hint cho các params và return value (nếu có thể) nhé.

E update hết rồi nhé, giờ e chuyển qua làm block binding nếu cần update gì bên này thì e update tiếp

@rilwis rilwis changed the title feat: register_meta feat: register_meta. Closes #1348. Aug 19, 2024
Copy link
Member

@rilwis rilwis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hiện tại 1 số field như post, taxonomy, usertaxonomy_advanced (khi ko multiple) thì đều trả về giá trị định dạng integer e nhé. E format lại giá trị trả về nhé.

Trong commit mới, a có update lại hàm register_meta vì tham số đầu tiên của nó phải là object_type, và nhận giá trị post, term, user, ... thôi. Tham số object_subtype mới nhận giá trị là post type.

A có 1 số comment nhỏ khác, e xem nhé.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Register fields to Wordpress internals

3 participants