'
' . ' ' . '
', 'email' => '
' . '
', 'url' => '
' . '
' ); return $fields; } add_filter( 'comment_form_defaults', 'fitness_one_comment_form' ); function fitness_one_comment_form( $args ) { $args['comment_field'] = '
'; $args['class_submit'] = 'btn submit-btn pull-left submit-comment-btn'; // since WP 4.1 return $args; } if ( ! class_exists( 'WP_Customize_Control' ) ) return NULL; /** * Class fitness_one_Customize_Dropdown_Taxonomies_Control */ class fitness_one_Customize_Dropdown_Taxonomies_Control extends WP_Customize_Control { public $type = 'dropdown-taxonomies'; public $taxonomy = ''; public function __construct( $manager, $id, $args = array() ) { $our_taxonomy = 'category'; if ( isset( $args['taxonomy'] ) ) { $taxonomy_exist = taxonomy_exists( esc_attr( $args['taxonomy'] ) ); if ( true === $taxonomy_exist ) { $our_taxonomy = esc_attr( $args['taxonomy'] ); } } $args['taxonomy'] = $our_taxonomy; $this->taxonomy = esc_attr( $our_taxonomy ); parent::__construct( $manager, $id, $args ); } public function render_content() { $tax_args = array( 'hierarchical' => 0, 'taxonomy' => $this->taxonomy, ); $all_taxonomies = get_categories( $tax_args ); ?>