Not your average team of WordPress developers.

The WooCommerce File Upload plugin is built using core WooCommerce hooks, so with some basic coding knowledge – the world is your oyster when extending.

Product Meta

  • _wcfu_activated
  • _wcfu_title
  • _wcfu_filetypes
  • _wcfu_max_files

Filters

wcfu_file_types

Array. Add or edit file types.

add_filter( 'wcfu_file_types', function( $arr ){
	// Do stuff here
	return $arr;
} );

wcfu_valid_file_text

String. Edit the valid file text, shown when dropping or adding a file to the input.

add_filter( 'wcfu_valid_file_text', function( $text ){
	$text = 'Replace text';
	return $text;
} );

wcfu_invalid_file_text

String. Edit the invalid file text, shown when dropping or adding a file to the input.

add_filter( 'wcfu_invalid_file_text', function( $text ){
	$text = 'Replace text';
	return $text;
} );

wcfu_error_null_selected

String. Error message displayed when activated and 0 files are selected when attempting to add to basket or checkout.

add_filter( 'wcfu_error_null_selected', function( $text ){
	$text = 'Replace text';
	return $text;
} );

wcfu_error_exceeded_max_files

String. Error message displayed when activated and the maximum file count has been exceeded, when attempting to add to basket or checkout.

add_filter( 'wcfu_error_exceeded_max_files', function( $text ){
	$text = 'Replace text';
	return $text;
} );

wcfu_error_invalid_file_type

String. Error message displayed when activated and a file type uploaded is not in the allowed file type list. Shown when attempting to add to basket or checkout.

add_filter( 'wcfu_error_invalid_file_type', function( $text ){
	$text = 'Replace text';
	return $text;
} );

Was this doc helpful?