Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save saurabhchandrapatel/a980b44881ca08cc5b9d53b01af83fba to your computer and use it in GitHub Desktop.
Save saurabhchandrapatel/a980b44881ca08cc5b9d53b01af83fba to your computer and use it in GitHub Desktop.
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function learndash_woocommerce::add_product_type()
function add_product_type($types, $product_type = null ) {
$types['course'] = __( 'Course', 'learndash');
return $types;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment