wordpress/wp-content/themes/basic/themify/themify-metabox/example-functions.php
/**
 * Add a sample Color field to Category taxonomy
 *
 * @since 1.0.3
 * @return array
 */
Add a sample Color field to Category taxonomy
@since 1.0.3
@return array
Add a sample Color field to Category taxonomy @since 1 . 0 . 3 @return array
function themify_metabox_example_category_fields( $fields ) {
	$new_fields = array(
		array(
			'name'        => 'color_field',
			'title'       => __( 'Color', 'themify' ),
			'description' => '',
			'type'        => 'color',
			'meta'        => array( 'default' => null ),
		),
	);
	return array_merge( $fields, $new_fields );
}
function themify_metabox_example_category_fields ( $ fields ) { $ new_fields = array ( array ( 'name' => 'color_field' , 'title' => __ ( 'Color' , 'themify' ) , 'description' => '' , 'type' => 'color' , 'meta' => array ( 'default' => null ) , ) , ) ; return array_merge ( $ fields , $ new_fields ) ; }
Add a sample Color field to Category taxonomy
 @since 1.0.3
 @return array
Add a sample Color field to Category taxonomy @since 1 . 0 . 3 @return array