Documentation - Actions / Filters - Filter – Sort Interface – Additional information’s for object sort row

Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedInPrint this page

Filter – Sort Interface – Additional information’s for object sort row

This filter can e used to display additional details for the Post Types Items within the Re-Order Interface.

apto/reorder_item_additional_details

Examples

The following code will append the custom field value if exists for _my_custom_field

add_filter('apto/reorder_item_additional_details', 'theme_apto_reorder_item_additional_details', 10, 2); 
function  theme_apto_reorder_item_additional_details($additional_details, $post_data)
{
	$custom_field_value = get_post_meta($post_data->ID, '_my_custom_field', TRUE);
	$additional_details .= $custom_field_value;
	
	return $additional_details;
}

*This code should be used within the theme or a custom plugin.