Shortcode Fields

Convert default fields into shortcodes and make use of amazing shortcodes available in external plugins.

Use shortcodes in custom fields to generate dynamic content for profiles and add third party components.These features requires UPME version 2.0.19 and upwards.

Use Custom Field Value on Existing Shortcode

Filter

– upme_profile_value_{meta_key}

Description

– Use the value of specific custom field as the content or attribute of a shortcode.

Parameters

– Current value, Various parameters(field_meta => ‘Field Meta Data’, user_id => ‘ID of the profile user’)

Usage
add_filter('upme_profile_value_first_name','upme_profile_value_first_name',10,2);
function upme_profile_value_first_name($value,$params){
        // 1. Uses field value as content of specific shortcode
	return do_shortcode('[upme_custom_shortcode]'. $value .'[/upme_custom_shortcode]');

        // 2. Uses field value as an attribute of specific shortcode
	//return do_shortcode('[upme_custom_shortcode user='. $value .']');
}

Use Custom Field Value as Shortcode

Filter

– upme_profile_value_{meta_key}

Description

– Use the value of specific custom field as the shortcode. You can allow users to enter shortcodes directly into text fields.

Parameters

– Current value, Various parameters(field_meta => ‘Field Meta Data’, user_id => ‘ID of the profile user’)

Usage
add_filter('upme_profile_value_first_name','upme_profile_value_first_name',10,2);
function upme_profile_value_first_name($value,$params){
        // Uses field value as the shortcode
	return do_shortcode($value);
}

Get your copy of User Profiles Made Easy on CodeCanyon