[wp-hackers] default text for posts?

Mindshare Studios info at mindsharestudios.com
Thu Sep 6 00:03:31 GMT 2007


Sweet thanks. Worked like a charm. One more question: any idea how I would
go about ensuring that this only happened on posts and not pages?

--Damian Taggart

-----Original Message-----
From: wp-hackers-bounces at lists.automattic.com
[mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Jennifer
Hodgdon
Sent: Wednesday, September 05, 2007 4:57 PM
To: wp-hackers at lists.automattic.com
Subject: Re: [wp-hackers] default text for posts?

Mindshare Studios wrote:
> I was wondering if anyone knew of a way to set default text to come up for
> new posts? I'm working on a site where all blog entries will follow a
> similar template and it would be great if I could somehow embed default
> text.

There's a filter for 'default_content' that can be used in a plugin to 
define default content for posts.

When all else fails, check the action/filter lists:
http://codex.wordpress.org/Plugin_API/Action_Reference
http://codex.wordpress.org/Plugin_API/Filter_Reference

This one is in the "administrative screen" section of the filter 
reference.

     --Jennifer



More information about the wp-hackers mailing list