Post Pic

How to disable image caption in WordPress post editor

For each uploaded image, WordPress lets you enter a caption to describe the file. This is very cool, but sometimes you don’t need captions at all. Here is how you can get rid of it.

Simply paste the following lines of code in your functions.php file, and you're done!

function caption_off() {
    return true;
}

add_filter( 'disable_captions', 'caption_off' );

Thanks to Wp Tricks for this nice hack!

5 Responses

Jan 07 2010 03:30

interesting. I suppose this would come in handy if you changed your site design from previously having captions to not wanting them anymore.

Jan 07 2010 19:49

Thanks for this recipe, I will check it

Jan 07 2010 22:30

Nice, simple tip. I’ve always hated captions (never use them) so it will be nice to get rid of them.

Trackbacks:

Leave a Comment

* Name, Email, Comment are Required