[wp-hackers] WordPress actions' load order

Rilwis rilwis at gmail.com
Mon Apr 23 13:50:47 UTC 2012


You can use one of these methods:
- Using 'admin_head' hook. It's not exactly for this purpose, but it works.
- Or better, you the same 'add_meta_boxes' hook with very high priority,
such as 9999, and in the callback function, you call remove_meta_box().


> For example, a third party plugin use..
>
> add_action( 'add_meta_boxes', 'foo' );
>
> I was able to remove the metabox added using `remove_meta_box`, but
> the only action I found which load after `add_meta_boxes` is
> `admin_notices`
>
> But using admin_notices for this purpose seems hacky..Are there any
> better method?
>
> Thanks.
>

-- 

Tran Ngoc Tuan Anh (a.k.a. Rilwis)
Web/WordPress developer
Website: www.deluxeblogtips.com


More information about the wp-hackers mailing list