[wp-hackers] Improving Meta Box Handling
Mike Schinkel
mikeschinkel at newclarity.net
Thu Jun 3 00:15:22 UTC 2010
> While we're at it, can we switch over to using $args and wp_parse_args()
> instead of so many impossible-to-remember-or-work-with arguments? Current
> add_meta_box() has 7 arguments! IMHO we should switch to $args as soon as
> there are more than 3 arguments, esp. when many of them are likely to be
> defaults that you often don't want to override: do_thing( '', '', '', '',
> '', 'FAIL' );
A big +1 on that. I'd love to see add the admin menus functions (i.e. add_submenu_page() et.al.) cleaned up in the same way. The $args model is a really workable and scalable model.
-Mike
More information about the wp-hackers
mailing list