Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have been looking through the theme customization API documentation and google to simply find out the names of the control types already built in to the theme customizer.

More specifically I am looking for what the name is of a simple button. I have tried using the type button and input and I am getting nowhere making geusses. So instead of creating a custom control I am sure their has to be a plain old button but I can't find what it is called. So if anyone knows what it is called or can point me to a list with the control types and their names I would greatly appreciate it.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Have a look in the source: http://core.trac.wordpress.org/browser/trunk/wp-includes/class-wp-customize-control.php

Basic control types:

  • text
  • checkbox
  • radio
  • select
  • dropdown-pages

Also some advanced control types (as-described by Otto):

  • WP_Customize_Color_Control - extends the built in WP_Customize_Control class. It adds the color wheel jazz to places where color selection is needed.
  • WP_Customize_Upload_Control – This gives you an upload box, for allowing file uploads. However, you probably won’t use this directly, you’ll extend it for other things… like:
  • WP_Customize_Image_Control – This gives the image picker and the uploader box. It extends the upload controller. You can see it in action on the custom background piece, where a user can upload a new file to be the background image.
  • WP_Customize_Header_Image_Control – Because of the resizing action of the header piece, it needs a bit of special handling and display, so the WP_Customize_Header_Image_Control extends the WP_Customize_Image_Control to add that functionality. You can see it in action on the custom header piece, where a user can upload a new file to be the header image.

Also:

  • WP_Customize_Background_Image_Control

If you need more than that, you'll have to define your own, custom control.

share|improve this answer
    
Thank you, your post definitely made sure I didn't continue searching google for another hour. I ended up creating a custom control for the button. –  user1632018 Apr 24 '13 at 1:17
add comment

Your Answer

 
discard

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.