Skip to content
This repository has been archived by the owner on Sep 18, 2019. It is now read-only.

Controls need public $type property #12

Open
michaeldcain opened this issue Aug 5, 2014 · 0 comments
Open

Controls need public $type property #12

michaeldcain opened this issue Aug 5, 2014 · 0 comments

Comments

@michaeldcain
Copy link

Per Otto's explanation, each custom control should probably declare a unique public $type property.

Example:

if ( ! class_exists( 'WP_Customize_Control' ) )
    return NULL;

class Textarea_Custom_Control extends WP_Customize_Control
{
    public $type = 'textarea';

    /**
     * Render the control's content.
     *
     * Allows the content to be overriden without having to rewrite the wrapper.
     *
     * @since   10/16/2012
     * @return  void
     */
    public function render_content() {
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant