wordpress/wp-content/themes/basic/themify/themify-metabox/example-functions.php
/**
 * Add sample fields to the user profile screen
 *
 * @return array
 * @since 1.0.1
 */
Add sample fields to the user profile screen
@return array
@since 1.0.1
Add sample fields to the user profile screen @return array @since 1 . 0 . 1
function themify_metabox_example_user_fields( $fields ) {
	$fields['themify-metabox-sample'] = array(
		'title' => __( 'Sample fields added by Themify Metabox.', 'themify' ),
		'description' => __( 'Description text about the fields.', 'themify' ),
		'fields' => array(
			array(
				'name' => 'textbox_field',
				'title' => __( 'Text box', 'themify' ),
				'type' => 'textbox',
			),
			array(
				'name' => 'image_field',
				'title' => __( 'Image field', 'themify' ),
				'description' => __( 'This is only to show how field types can be used in user profile pages.', 'themify' ),
				'type' => 'image',
			),
		),
	);
	return $fields;
}
function themify_metabox_example_user_fields ( $ fields ) { $ fields [ 'themify-metabox-sample' ] = array ( 'title' => __ ( 'Sample fields added by Themify Metabox.' , 'themify' ) , 'description' => __ ( 'Description text about the fields.' , 'themify' ) , 'fields' => array ( array ( 'name' => 'textbox_field' , 'title' => __ ( 'Text box' , 'themify' ) , 'type' => 'textbox' , ) , array ( 'name' => 'image_field' , 'title' => __ ( 'Image field' , 'themify' ) , 'description' => __ ( 'This is only to show how field types can be used in user profile pages.' , 'themify' ) , 'type' => 'image' , ) , ) , ) ; return $ fields ; }
Add sample fields to the user profile screen
 @return array
 @since 1.0.1
Add sample fields to the user profile screen @return array @since 1 . 0 . 1