[wp-hackers] Why add_action(manage_posts_custom_column... dont fire?

Paul paul at codehooligans.com
Wed Feb 9 19:09:48 UTC 2011


D'Oh!  Sorry, emailed too quick. Thanks for the correction. 

P-

On Feb 9, 2011, at 2:08 PM, Pete Mall wrote:

> Pages are hierarchical and posts are not.
> 
> On Wed, Feb 9, 2011 at 11:03 AM, Paul <paul at codehooligans.com> wrote:
> 
>> To be accurate there are too hooks. Depends on how your Post Type is setup
>> 
>> For Posts (hiearchical)
>> add_action("manage_posts_custom_column", "my_custom_columns");
>> 
>> Pages (non-hiearchical)
>> add_action("manage_pages_custom_column", "my_custom_columns");
>> 
>> 
>> On Feb 9, 2011, at 1:59 PM, Rafael Ehlers wrote:
>> 
>>> After 3 days, finally figured what is the problem:
>>> 
>>> on register_post_type, hierarchical must be set to false
>>> to add_action("manage_posts_custom_column"... properly fires!
>>> 
>>> Thanks anyway guys!
>>> 
>>> On Wed, Feb 9, 2011 at 4:24 PM, Matt Martz <matt at sivel.net> wrote:
>> 
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>> 
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers



More information about the wp-hackers mailing list