Volatyl EDD Filters List

If you are not familiar with WordPress filters, take a second to read the Volatyl Filters Guide. There are plenty of filters built directly into Volatyl for you to use.

With Volatyl for Easy Digital Downloads, there are a few more.

Remember, we only work inside of child themes. Paste the code examples into the functions.php of your child theme.

Store Items Per Pagestore_items_per_page

Controls the number of download items to show on a Store Front page before pagination breaks to a new page.

Show me an example!

// Filter store front item count
function store_item_count($variable) {
	$variable = str_replace(9,6,$variable); // Change from 9 to 6
	return $variable;
}
add_filter('store_items_per_page','store_item_count');

Item Informationitem_info

Controls the text displayed just before prices are listed for each download item.

Show me an example!

// Filter pricing text
function pricing_terms($variable) {
    $search = array( 'Price:', 'Starting at:', 'Free' ); // Looking for?
    $replace = array( 'Cost:', 'From:', 'No Charge' ); // Replacing with?
    $variable = str_replace( $search, $replace, $variable ); // Do it.
    return $variable; 
}
add_filter('item_info','pricing_terms');

Cart Item Informationcart_item_info

Controls various text elements displayed in relation to the shopping cart and checkout process.

Show me an example!

// Filter cart and checkout text
function cart_checkout_text($variable) {
    // Looking for?
    $search = array( 
    	'Item Name', 
    	'Item Price',
    	'Actions',
    	'Remove',
    	'Total',
    	'Subtotal',
    	'Tax' ); 
    // Replacing with?
    $replace = array( 
    	'Download', 
    	'Cost',
    	'Tasks',
    	'Delete',
    	'Sum',
    	'Before Tax',
    	'Fee' ); 
    $variable = str_replace( $search, $replace, $variable ); // Do it.
    return $variable; 
}
add_filter('cart_item_info','cart_checkout_text');

Download History Informationdownload_history_info

Controls text in the download history table.

Show me an example!

// Filter download history table
function download_history_table($variable) {
    // Looking for?
    $search = array( 
    	'Download Name', 
    	'Files',
    	'No downloadable files found.',
    	'You have not purchased any downloads.' ); 
    // Replacing with?
    $replace = array( 
    	'Nomenclature', 
    	'Items',
    	'0 Previous Items',
    	'0 Previous Transactions' ); 
    $variable = str_replace( $search, $replace, $variable ); // Do it.
    return $variable; 
}
add_filter('download_history_info','download_history_table');

Return to docs