[wp-hackers] Hooking into Comments

ml_wordpress at copperleaf.org ml_wordpress at copperleaf.org
Thu Aug 25 00:51:19 GMT 2005


Bill Smith wrote:

> Robert Deaton wrote:
>
>> If I remember correct, you should be able to make your own post type
>> and just make a blank post for where you want comments to be. Posts
>> without one of the pre-defined types by WordPress won't be shown, so
>> the user never really has to know.
>>
>> On 8/20/05, Matthew Mullenweg <m at mullenweg.com> wrote:
>>  
>>
>>> gallery.manager at hiveworks.com wrote:
>>>   
>>>
>>>> I had a look at the WP code but I couldn't find any way to hook into
>>>> comments. They seem to be hardwired to posts.
>>>>     
>>>
>>> Comments must be attached to posts, but posts are extremely flexible in
>>> their type. We even have sub-posts.
>>>   
>>
> I'm curious about this too. The only thing I could find that might 
> identify "type" is the post_status column. Because the sql defines it 
> as an enum, you can't set it to anything other than 'publish', 
> 'draft', 'private', 'static', or 'object'. Is there another way of 
> identifying  a specially typed post?

Anyone have any ideas on this?


More information about the wp-hackers mailing list