[wp-trac] [WordPress Trac] #43229: Documentation for add_meta_boxes hook is incorrect

WordPress Trac noreply at wordpress.org
Mon Feb 5 12:29:07 UTC 2018


#43229: Documentation for add_meta_boxes hook is incorrect
--------------------------------+------------------------------
 Reporter:  johnbillion         |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Options, Meta APIs  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:  needs-patch         |     Focuses:  docs
--------------------------------+------------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:2 danieltj]:
 > The `add_meta_boxes` hook doesn't have a parameter for a `$post`, at
 least not in function I found. Am I looking at the wrong one? I didn't see
 anything that referenced posts.

 It's about the `add_meta_boxes` filter, not the `add_meta_box()` function
 :) There are 3 instances of the hook:
 * https://core.trac.wordpress.org/browser/tags/4.9/src/wp-admin/edit-form-
 advanced.php#L326
 * https://core.trac.wordpress.org/browser/tags/4.9/src/wp-admin/edit-form-
 comment.php#L175
 * https://core.trac.wordpress.org/browser/tags/4.9/src/wp-admin/edit-link-
 form.php#L32

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43229#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list