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

WordPress Trac noreply at wordpress.org
Mon Feb 5 12:32:25 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 danieltj):

 Replying to [comment:4 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:
 > [...]

 Ah, thank you for pointing that out. Was very confused when I saw the
 docs.

 I'll take a look.

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


More information about the wp-trac mailing list