The EDD Payment status is included in the order view in Freshdesk, but sometimes you may want to limit the orders that are shown to those in particular statuses.

By default, orders in any of the following statuses are included:

  • Pending
  • Complete
  • Refunded

The EDD Freshdesk plugin contains a filter that lets you control which order statuses are included in the feed to Freshdesk, so you can include code like the below in your theme’s functions.php file, or a functionality plugin to limit the orders that are included. For example, if you want to limit just to Complete orders, you can do the following:

function my_plugin_edd_freshdesk_order_statuses($statuses) {
	return array('publish');
}
add_filter(
        'edd_freshdesk_order_statuses',
        'my_plugin_edd_freshdesk_order_statuses',
        10,
        1
);

This entry was posted in .
Bookmark the permalink.