WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wonder if there any way to disable/remove the Upload/Insert button on the text editor that created on the custom field? I already has a field that handling the file upload, so I just want the text editor to handle text with basic formatting and lists features.


share|improve this question
up vote 0 down vote accepted

You simply set the parameter to false when you create the editor, which you do with a call to the_editor as follows:

<?php the_editor($customcontent, $id = 'CustomContent', $prev_id = 'title', $media_buttons = false, $tab_index = 2); ?>

The first parameter is the content that should be used to fill the editor when the page loads, it may come from a database on an edit page like $row['customcontent'] etc. The second is the id of the textarea, which will also be its name and go through into the $_POST array as the key. Then media_buttons = false is the one that tells it to add no buttons for adding media. Tab index is self explanatory.

You will also need the following to set up the text area:


function prepare_editor() {
share|improve this answer
Thank you very much!!!:) – dev-jim May 31 '12 at 11:07
No problems. Glad it helped. Actually, it took me about 3 days to find the perfect way to prepare the editor, as there is a lot of conflicting advice. But that setup there is perfect from 3.0 onwards. – Liam Bailey Jun 2 '12 at 9:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.