Adding custom config to Printus job data

It’s possible to filter and change the data that Printus sends to the PrintNode API for a print job. In the example below we’re adding some custom print options to the printjob before sending it to PrintNode.

You can learn more about the printjob configuration here.

function sl_cc_printus_add_custom_print_config($job_data){
	$job_data['options'] = array(
		'fit_to_page' => 'false',
		'rotate'      => 0,
	);
	return $job_data;
}
add_filter('printus__printnode_job_data', 'sl_cc_printus_add_custom_print_config', 10, 1);
Scroll to Top